Call a function with a function pointer
bearophile
bearophileHUGS at lycos.com
Thu Oct 10 08:56:13 PDT 2013
Namespace:
> /d917/f732.d(8): Error: basic type expected, not extern
> /d917/f732.d(8): Error: semicolon expected to close alias
> declaration
> /d917/f732.d(8): Error: no identifier for declarator void
> function(T*)
It seems that even the new alias syntax doesn't support the
extern :-) Perhaps this bug is not yet in Bugzilla.
Try:
alias extern(C) void function(T*) TF;
void foo(T)(TF func) {}
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list