OT (partially): about promotion of integers
Michael
pr at m1xa.com
Wed Dec 12 06:39:39 PST 2012
Machine/hardware have a explicitly defined register size and does
know nothing about sign and data type. fastest operation is
unsigned and fits to register size.
For example in your case, some algorithm that coded with
chained-if-checks may come unusable because it will slow.
And about C# checked:
http://msdn.microsoft.com/ru-ru/library/74b4xzyw.aspx
By default it is only for constants. For expressions in runtime
it must be explicitly enabled.
I think this check must be handled by developer through library
or compiler.
More information about the Digitalmars-d
mailing list