static if AssignExpression

Luís Marques luis at luismarques.eu
Wed Feb 13 16:45:39 UTC 2019


`static if` is defined in the D grammar as `static if ( 
AssignExpression )`.
What's the point of AssignExpression, instead of just a 
ConditionalExpression?
In what situation can you even use `static if(x = y)?`, `static 
if(x += y)?`, etc?


More information about the Digitalmars-d mailing list