try/catch idiom in std.datetime

Walter Bright newshound2 at digitalmars.com
Mon Nov 18 13:51:11 PST 2013


On 11/18/2013 1:04 PM, Jacob Carlborg wrote:
> On 2013-11-18 21:49, Walter Bright wrote:
>
>> Most architectures I've used supported a HLT, and there's always
>> something the back end could construct if it had to, even:
>>
>>       ...
>>       call halt
>>       ...
>
> 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.

Sure.



More information about the Digitalmars-d mailing list