try/catch idiom in std.datetime

Jonathan M Davis jmdavisProg at gmx.com
Mon Nov 18 14:21:04 PST 2013


On Monday, November 18, 2013 22:04:59 Jacob Carlborg wrote:
> In that case, would we want it to be legal to throw AssertError instead
> of using the halt instructions? Because that's what the docs says.

For when you're not in release mode. You want the more informative AssertError 
in that case. HLT is just for when assertions get compiled out.

- Jonathan M Davis


More information about the Digitalmars-d mailing list