delegates with C linkage

Simen kjaeraas simen.kjaras at gmail.com
Sun Jun 6 02:33:46 PDT 2010


dennis luehring <dl.soluz at gmx.net> wrote:

> D still won't accept an delegat in an extern C because this type does  
> not exists in the C world

Nor do classes, and those certainly can be passed to a C-linkage
function.

Also, pointers to delegates can be passed to C-linkage functions. A
delegate is nothing but a struct, and as such there is no reason for
it not to be passable to a C-linkage function.

I say this is a bug.

-- 
Simen


More information about the Digitalmars-d-learn mailing list