Weird const behavior

Andrea Fontana nospam at example.org
Thu Dec 20 15:15:42 UTC 2018


On Thursday, 20 December 2018 at 14:49:10 UTC, Marko wrote:
> But is this right? I mean if they are equal shouldn't they have 
> the same behavior?

I don't think so:

     float a = 1.0;
     long b = 1;

     writeln(a == b);
     writeln(a/2 == b/2);






More information about the Digitalmars-d-learn mailing list