Calling D from C

Stewart Gordon smjg_1998 at yahoo.com
Mon Mar 12 09:54:25 PDT 2012


On 12/03/2012 15:38, Steven Schveighoffer wrote:
<snip>
>> http://dlang.org/phobos/core_runtime.html#initialize
>>
>> And actually, I think this should do everything necessary. No need to call gc_init and
>> thread_attachThis().
>
> Hm... just realized you can't do this, since it's a D function :D

Why can't this be dealt with using an extern (C) wrapper function in the D code?

Stewart.


More information about the Digitalmars-d mailing list