extern(C) in druntime

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 10 15:02:53 PST 2014


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)`?
>>>
>>> I don't think there's any reason to use extern (C) in druntime any more.
>>
>> I guess that nails it, will make a PR
>
> 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) :)

-Steve


More information about the Digitalmars-d mailing list