Program size, linking matter, and static this()
Walter Bright
newshound2 at digitalmars.com
Fri Dec 16 15:24:58 PST 2011
On 12/16/2011 3:18 PM, maarten van damme wrote:
> how did other languages solve this issue? I can't imagine D beeing the only
> language with static constructors, do they have that problem too?
In C++, the order that static constructors run is implementation defined. No
guarantees at all. The programmer has no reasonable way to control the order in
which they are done.
(Of course, C++ doesn't even have modules, so the notion of a module constructor
is tenuous at best.)
More information about the Digitalmars-d
mailing list