On Monday, 10 November 2014 at 23:02:54 UTC, Steven Schveighoffer wrote:
On 11/10/14 5:15 PM, Logan Capaldo wrote:
On Monday, 10 November 2014 at 19:44:05 UTC, Dicebot wrote:
On Monday, 10 November 2014 at 17:48:04 UTC, Sean Kelly wrote:
On Monday, 10 November 2014 at 16:59:47 UTC, Dicebot wrote:

Right now question is, however, are there any legitimate uses of
`extern(C)` in druntime or those all can be replaced with
`pragma(mangle, "XXX") extern(D)`?
[snip]
What about things that are "meant" to be called from C? E.g.
`rt_init`/`rt_term`?

Those should remain extern(C). Of course, those have no "D only" features, so they can easily remain extern(C) :)

So just to be clear, there are _some_ legitimate uses of extern (C) in druntime, yes? rt_init/rt_term, rt_loadLibrary, thread_init(? think this one can be bootstrapped from D code), ...?



Reply via email to