T.init for static arrays?

bearophile bearophileHUGS at lycos.com
Wed Mar 17 07:39:42 PDT 2010


grauzone:
> This assert should never fail:
> 
> T x;
> assert(x is T.init);
> 
> (Right now it fails for floats because of NaN - can we fix this too? 
> "is" should always do byte comparisons.)

I have added it as enhancement request because I think it's a good idea:
http://d.puremagic.com/issues/show_bug.cgi?id=3981

Bye,
bearophile



More information about the Digitalmars-d mailing list