Extern Keyword for Function Type

Dicebot public at dicebot.lv
Tue Apr 15 16:33:46 PDT 2014


On Tuesday, 15 April 2014 at 22:32:10 UTC, Artur Skawina wrote:
>    extern(C) {
>        extern (D) alias FP = int function(int);
>        void testFunction(FP);
>    }
>
> artur

Still does not allow you to actually call it from C side, so this 
is somewhat confusing.

I'd really just go with void*


More information about the Digitalmars-d-learn mailing list