Am Sat, 02 May 2015 09:45:56 +0000
schrieb "Mike" <[email protected]>:

> On Friday, 1 May 2015 at 07:34:04 UTC, Johannes Pfau wrote:
> 
> >
> > TLDR: I'd prefer using @cctor extern(C) void foo() {} instead 
> > of normal
> > d module ctors.
> >
> > Bonus points: You can have more than one @cctor per module.
> 
> How do you propose defining calling order with this feature?

Not at all? C constructors don't really have a defined calling order.
You can optionally specify a 'priority' integer but this only works well
if you control all constructor priorities.

Reply via email to