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.)

Reply via email to