mixin does not work as expected

rempas rempas at tutanota.com
Wed Jan 5 18:55:41 UTC 2022


On Wednesday, 5 January 2022 at 17:48:03 UTC, H. S. Teoh wrote:
> Yeah, this won't fly. Whatever you pass to mixin must be one or 
> more
> *complete* declaration or (possibly compound) statements. It's 
> illegal
> to pass the `static if` and its else-clause to two different 
> mixin()
> invocations (they are considered part of the same compound 
> statement).
>
>
> T

I got it, thanks a lot!


More information about the Digitalmars-d-learn mailing list