Calling a D function from C

Simen kjaeraas simen.kjaras at gmail.com
Sat Nov 13 05:20:05 PST 2010


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.

-- 
Simen


More information about the Digitalmars-d-learn mailing list