Overflows in Phobos

Cauterite via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 31 14:45:25 PDT 2016


On Saturday, 30 July 2016 at 00:55:11 UTC, Charles Hixson wrote:
> FWIW, in that case I always use
> assert (false, "...");
> I try to never use integers for booleans.  But this may well be 
> a common usage.

I suspect `assert(0)` is really `assert(<any logically-false 
constexpr>)`, so you should be fine. Both styles are used in 
Phobos.


More information about the Digitalmars-d mailing list