try/catch idiom in std.datetime
Jacob Carlborg
doob at me.com
Mon Nov 18 01:24:11 PST 2013
On 2013-11-18 10:18, Jonathan M Davis wrote:
> I don't see much gain over simply putting scope(failure) at the top. You just
> avoid having to write the assertion yourself
You suggested it, but by adding it to the language instead.
> I also expect that it wouldn't work with return statements.
No. It would just return from the delegate.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list