[Issue 6377] std.conv.to should check range when changing signedness
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 24 16:08:29 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6377
--- Comment #2 from Vladimir Panteleev <thecybershadow at gmail.com> 2011-07-24 16:08:26 PDT ---
I thought the whole point of std.conv.to for integer to integer conversions is
to make them safe, and make sure that the value - as interpreted from the
source type - can be correctly represented in the destination type. If this
isn't the point of std.conv.to, it should be explicitly documented what its
goals are, and there should probably be something else in the standard library
to facilitate safe integer conversions.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list