Calling a D function from C
Carlo
carlo.lucibello at gmail.com
Sun Nov 14 03:21:19 PST 2010
On 13/11/2010 14:20, Simen kjaeraas wrote:
> Michal Minich <michal.minich at gmail.com> wrote:
>
>> first: extern (C) means that the function 'fun' is not defined in D, but
>> in C.
>
> Wrong. It means the function has C calling convention. If it has a body,
> it is defined in D, and can be called from C (and D). If not, it is defined
> elsewhere, and can be called from D.
>
That's what I read in Andrei's TDPL, still he doesn't add anything to
it, so I can't figure out compiler's instruction.
More information about the Digitalmars-d-learn
mailing list