assert(0) behavior

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 4 16:45:11 PDT 2015


On 8/4/2015 4:37 PM, Walter Bright wrote:
> On 8/4/2015 3:13 PM, Steven Schveighoffer wrote:
>> For instance:
>>
>> https://github.com/D-Programming-Language/druntime/blob/master/src/core/time.d#L2283
>>
>>
>>
>> This makes it seem like a message will be printed in the case where
>> ticksPerSecond was 0. but in reality it simply throws a segfault.
>
> That's a bug in core/time.d, NOT a bug with asserts.
>

https://issues.dlang.org/show_bug.cgi?id=14870


More information about the Digitalmars-d mailing list