[OT] The Usual Arithmetic Confusions

Elronnd elronnd at elronnd.net
Thu Feb 17 18:14:46 UTC 2022


On Thursday, 17 February 2022 at 17:53:58 UTC, bachmeier wrote:
> 	writeln(-1.to!uint);

This is -(1.to!uint).  Not (-1).to!uint.  Not really a WTF, imo; 
precedence is just something you have to know, and it works more 
or less the same way in most programming languages.


More information about the Digitalmars-d mailing list