int C function

Ellery Newcomer ellery-newcomer at utulsa.edu
Fri Sep 30 21:54:03 PDT 2011


On 09/30/2011 08:20 PM, Andrej Mitrovic wrote:
> I think this is a side-effect of the new function pointer fixes, where
> you now can't implicitly convert an extern(C) function to an extern(D)
> function by accident (and that's a good thing). But the problem is,
> you can't define a function with a different linkage type inline as a
> type parameter. You have to use an alias instead:

wait, are there explicit ways to convert extern(C) funcs <-> extern(D)
funcs?


More information about the Digitalmars-d-learn mailing list