Should negating an unsigned integral be an error?
Dave Jones
dave at jones.com
Mon Jan 29 09:58:00 UTC 2018
Given
uint i = 12345;
should
writeln(-i)
be an error? or maybe i should be automatically cast to a larger
signed type?
More information about the Digitalmars-d
mailing list