Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero Newsgroups: comp.lang.c++ Subject: Re: Pre-main construction order in modules Date: Tue, 1 Apr 2025 16:03:38 +0200 Organization: A noiseless patient Spider Lines: 12 Message-ID: References: <48eGP.730204$J61.500281@fx08.ams4> <5HfGP.241316$i41.190620@fx06.ams4> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 01 Apr 2025 16:03:19 +0200 (CEST) Injection-Info: raubtier-asyl.eternal-september.org; posting-host="3bf0d44dd83acf645d47a128fd38ca4e"; logging-data="3445892"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wKDDJpaJvssS3t51J1vtyBi/p1BIh6EM=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:NMyPLE5TdB4BGuhcVootdCcbBnQ= Content-Language: de-DE In-Reply-To: Bytes: 2561 Am 01.04.2025 um 14:16 schrieb Bonita Montero: > Am 01.04.2025 um 12:00 schrieb Fred. Zwarts: >> One may wonder why we still need a 'main'. Everything in main can be >> done in an static object. > It's easier to define a main() since it needs less syntax than a class. And more important: there might be other global objects which are initialized after this pseudo-"main()", but which are needed before.