[SPEC/DMD] Bug (?): extern( C ) function pointers (D1 and D2)
Andrej Mitrovic
andrej.mitrovich at gmail.com
Thu Dec 30 14:29:42 PST 2010
Yes, I agree. This will not work either but I'd like it to:
extern(C) void foo() { }
void bar(typeof(foo) func) { }
> Error: variable main.bar.func cannot be declared to be a function
Try filing a feature request on bugzilla.
On 12/30/10, David Nadlinger <see at klickverbot.at> wrote:
> On 12/30/10 10:44 PM, Andrej Mitrovic wrote:
>> Try this: [snip]
>
> Thanks for your answer, but as I mentioned in my original post, I don't
> see why creating an alias for the function pointer type should be
> necessary – it is quite annoying when you are automatically creating
> code, you'd need a special case for function pointers then.
>
> David
>
More information about the Digitalmars-d
mailing list