assert(0) behavior

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


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.



More information about the Digitalmars-d mailing list