Program size, linking matter, and static this()

Somedude lovelydear at mailmetrash.com
Sat Dec 17 10:18:21 PST 2011


Le 17/12/2011 00:18, maarten van damme a écrit :
> 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?

AFAIK, I believe like in D, it's best practice to avoid static
constructors as much as possible in Java, Python and I imagine C# as
well, even though the running order is well-defined.

The dependency injection design pattern seems to help here.


More information about the Digitalmars-d mailing list