extern(Windows) alias bug
Walter Bright
newshound at digitalmars.com
Fri Jun 2 12:06:57 PDT 2006
John C wrote:
> You may be right there. The reason why I wanted this to work is because
> this doesn't:
>
> template TFunc(T) {
> ...
> }
>
> TFunc!(extern(Windows) int function(int));
>
> A nice workaround would have been to have another template apply the
> calling convention:
>
> template ExternWindows(T) {
> extern(Windows) alias T ExternWindows;
> }
>
> TFunc!(ExternWindows!(int function(int, char*, char*, int));
Try:
extern (Windows) alias int function(int) fp;
More information about the Digitalmars-d-bugs
mailing list