Shared library extern (C) variables

Mineko uminekorox at gmail.com
Sun Jan 5 10:22:53 PST 2014


I keep getting mixed results searching for this. :\

Just as the title says, is it safe to extern (C) variables?

Something like this:
extern (C) auto foo = 800;

And then call that from another program?

Also, just because this has been bugging me for a while.. Is 
export broken, or it it not supposed to be used the same way as 
extern (C)?


More information about the Digitalmars-d-learn mailing list