Sujet : Re: Pre-main construction order in modules
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.c++Date : 01. Apr 2025, 15:03:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vsgrn7$39544$1@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
User-Agent : Mozilla Thunderbird
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.