digitalmars.D - checkedTo
- Martin Nowak (8/8) Nov 02 2011 I often write snippets like this for narrowing numerical conversions.
I often write snippets like this for narrowing numerical conversions. debug return to!T(exp); else return cast(T)exp; How about adding a construct for this to std.conv? Could be checkedTo!T(val). martin
Nov 02 2011