[Issue 17747] extern(C) shared static module constructor should be called in betterC programs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 18 12:25:04 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17747

--- Comment #10 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to anonymous4 from comment #9)
> (In reply to Steven Schveighoffer from comment #8)
> > People are used to this "just working".
> Same problem for other usage of extern(C).

How so?

void foo();

extern(C) void foo();

What is the difference? Don't both work exactly the same? As far as I know, the
only difference is mangling.

There is also no other precedent where a compiled D program only works properly
if you link in the correct order.

--


More information about the Digitalmars-d-bugs mailing list