possible bug in std.conv.parse

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 26 16:36:26 PDT 2014


this code: std.conv.parse!byte("-128") throws error: "Overflow in 
integral conversion". but this is obviously not true, as signed 
byte can hold such value.

the question is: is it bug, or it's intended behavior to limit 
signed integrals to values which can be safely abs()ed?


More information about the Digitalmars-d mailing list