ARM Cortex-M Microcontroller startup files

Johannes Pfau via Digitalmars-d digitalmars-d at puremagic.com
Sat May 2 10:57:17 PDT 2015


Am Sat, 02 May 2015 09:45:56 +0000
schrieb "Mike" <none at none.com>:

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


More information about the Digitalmars-d mailing list