__traits(compiles , mixin ... )
Adam D. Ruppe
destructionator at gmail.com
Wed Oct 25 19:31:40 UTC 2017
On Wednesday, 25 October 2017 at 19:21:27 UTC, SrMordred wrote:
> mixin( "T();" ); Error: `structliteral` has no effect in
> expression `T()`
The semicolon there indicates it is a complete statement that
does nothing, and that's no error.
If there's no ;, it is just an expression that must be somewhere
else - and the compile error is deferred until higher in the call
chain.
More information about the Digitalmars-d-learn
mailing list