delegates/lambas do not pick up calling convention

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 10 06:22:10 PDT 2017


On Wednesday, 9 August 2017 at 23:52:00 UTC, Johnson Jones wrote:
> extern(C) delegate(void*) {}

You should very rarely use extern(C) delegate... delegate is a D 
type, so the C function is almost certainly not actually 
receiving it.

Only time you'd want an extern(C) using D types like delegates, 
arrays, strings, etc., is if the receiver is actually also 
written in D.

idk if this would fix your problem, but it should be changed 
regardless.


More information about the Digitalmars-d-learn mailing list