try/catch idiom in std.datetime
Jacob Carlborg
doob at me.com
Mon Nov 18 01:22:43 PST 2013
On 2013-11-18 10:13, Jonathan M Davis wrote:
> The aren't if the condition is statically known to be false, as is the case
> when you use a try-catch block to catch Exception and then assert within the
> catch block in order to make the function be able to be nothrow.
Then it supposed to turn it into a HLT instruction, at least on x86. I
don't know how much that affects the code size.
> It also won't run unless you compile with -debug, which I expect very, very
> few people do.
True.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list