DMD 1.030 and 2.014 releases

janderson askme at me.com
Sat May 17 00:39:54 PDT 2008


<snip>

 > Changed std.to to throw exception when object-to-object cast fails.

What always annoyed me in C# was the conversions causing exceptions. 
That's why they added the TryParse which would fail silently and return 
a best guess number (ie 0 if there was no number, MAX if overflow).  Is 
there an alternative in the std?  One that is silent or allows you to 
specify a default?

Of course that would not be hard to write, but it would be useful.

-Joel


More information about the Digitalmars-d-announce mailing list