No parenthesis for assert?

Manfred Nowak svv1999 at hotmail.com
Thu Jan 12 07:57:08 PST 2012


Alex Rønne Petersen wrote:
> Is there any reason parentheses are required
Yes.

> for all other use cases, it would be a nice thing to have. 
Maybe, but only when no `assert'-expression(!) is evaluated ever ...
Because making parenthesis optional for `assert' would introduce 
ambiguities.

-manfred


More information about the Digitalmars-d mailing list