assert(condition[, message]) patch

Unknown W. Brackets unknown at simplemachines.org
Fri Jun 2 07:04:05 PDT 2006


I use:

static assert ("Message", 0);

Which gives a message similar to:

static assert  ("Message" , 0) is false

-[Unknown]


> My code is littered with:
> 
> static if (!cond) {
>   pragma(msg, "xxx");
>   static assert(0);
> }



More information about the Digitalmars-d mailing list