try/catch idiom in std.datetime

Jacob Carlborg doob at me.com
Mon Nov 18 01:09:35 PST 2013


On 2013-11-18 09:14, Andrei Alexandrescu wrote:

> I'm also concerned about generated code size and overall efficiency. It
> looks like the assert(0) insertions are there simply to validate the
> design (they only fail if Phobos has an internal error), so there should
> be some means to remove them in release builds. We don't have such a
> possibility at the moment.

Asserts are supposed to be removed in release builds. There's also the 
"debug" statement that can be used. Although it won't remove the try-catch.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list