[Issue 17868] add pragma(crt_con/destructor[, priority])

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 3 22:14:52 UTC 2017


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

--- Comment #2 from Martin Nowak <code at dawg.eu> ---
(In reply to Steven Schveighoffer from comment #1)
> This looks terrible (the original feature I mean). Do we really want to add
> this to D? Can't someone just use a C/C++ compiler?

What's terrible about that?

It's necessary for low-level integrations, and as it isn't standardized between
C compilers it would be very helpful to make it at least uniformly accessible
in D.

It is definitely needed in any case, and obviously gdc/ldc already support it
(each with their own syntax). So this enhancement is mainly about dmd and a
portable syntax between D compilers.

--


More information about the Digitalmars-d-bugs mailing list