amazing function behavior

Kagamin spam at here.lot
Tue Oct 20 01:10:59 PDT 2009

Zarathustra Wrote:

> Oh, I just find out cause of this behaviour in other module I had:
> extern (Windows) alias dword function() Tfunc1;
> extern (Windows) alias dword function(wstr) Tfunc2;
> const Tfunc2 func2;
> static this(){
>   func2 = cast(Tfunc1)0x0; // for DMD2 It is not error!!!
>                            // but it doesn't has a sens!!!
> }

looks like a bug

More information about the Digitalmars-d-learn mailing list