is this intended behavior?

Frank Malone fmalone at gmial.com
Mon Apr 9 12:01:56 PDT 2007


dmd v1.010

import std.stdio;
void main() {
        uint a = 3;
        ubyte b = 3;
        int c = -1;
        writefln(c < a ? "true" : "false"); // outputs false
        writefln(c < b ? "true" : "false"); // outputs true
}




More information about the Digitalmars-d mailing list