delegates with C linkage

Don nospam at nospam.com
Mon Jun 7 06:36:27 PDT 2010


Simen kjaeraas wrote:
> 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.

Yes, but I think that's a bug too. Quite a horrible one, in fact, since 
the class may get GC'd.

On the "interfaceToC" page, class, type[], type[type] and delegate() are 
listed as having no C equivalent. They should all fail to compile.


More information about the Digitalmars-d-learn mailing list