assert(0) behavior

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 3 18:13:26 PDT 2015


On 8/3/2015 5:25 PM, Ali Çehreli wrote:
> On 08/03/2015 04:57 PM, Steven Schveighoffer wrote:
>
>  > At the very least, assert(0, "message") should be a compiler error, the
>  > message is unused information.
>
> Agreed.

No.

1. If you want the message, do not use -release.
2. Do not use asserts to issue error messages for input/environment errors.



More information about the Digitalmars-d mailing list