A better assert() [was: Re: std.unittests [updated] for review]

Daniel Gibson metalcaedes at gmail.com
Fri Feb 4 07:08:24 PST 2011


Am 04.02.2011 15:57, schrieb spir:
> On 02/04/2011 01:40 PM, bearophile wrote:
>>> So moving them into explicit little features makes the language more
>>
>> The two little features I am talking about are:
>> - a halt() somewhere like in core.bitop or std.intrinsic or the
>> default object module to replace assert(0);
>
> What about exit()? What would be the practical or semantic diff of
> halt() compared to exit()?
>
> Denis

IIRC halt should produce a core-dump, so you can use a debugger to see 
what went wrong afterwards.

Cheers,
- Daniel


More information about the Digitalmars-d mailing list