http://d.puremagic.com/issues/show_bug.cgi?id=6377
Andrei Alexandrescu <and...@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |and...@metalanguage.com --- Comment #7 from Andrei Alexandrescu <and...@metalanguage.com> 2011-07-25 10:59:52 PDT --- (In reply to comment #6) > When talking about safe in D, it means memory safe. That's what @safe is for. > As such, if you mean something _other_ than memory safe, you need to be more > specific. Otherwise, talking about safe becomes kind of meaningless, because > it > could mean just about anything. Agreed. That being said, generally std.conv.to is meant to bring additional protection compared to a cast and to memory safety. Probably rejecting conversion from negative int to uint is a good decision. If one doesn't care, one can always use a cast instead. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------