extern(C) in druntime

Sean Kelly via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 10 15:21:59 PST 2014


On Monday, 10 November 2014 at 23:08:55 UTC, Logan Capaldo wrote:
>
> 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), 
> ...?

Yes.  There are a few functions meant to be callable from C code: 
rt_init, rt_term, thread_attachThis, thread_detachThis, etc.  
These could either be exposed as wrappers on top of extern (D) 
functions or left as-is.


More information about the Digitalmars-d mailing list