BufferedFile bug?

bearophile bearophileHUGS at lycos.com
Thu Mar 6 06:11:28 PST 2008


Janice Caron:
> I wouldn't call that a bug in BufferedStream.flush(), I'd call it a
> bug in D's arithmetic generally.

Another faster solution is to avoid unsigned integrals whenever you can, so you can avoid some bugs.


> (2), when unary minus is applied to an unsigned type, promote ubyte to
> short, ushort to int, uint to long, ulong to cent (...best make that
> one illegal for now). That would mean

Delphi has runtime cheeks for integer overflow too, they help.

Bye,
bearophile



More information about the Digitalmars-d mailing list