Re: Enum template with mixin, need 'this'
Meta via Digitalmars-d-learn Wed, 24 Dec 2014 12:11:11 -0800
I am curious, however, why changing `enum` to `auto` (or bool)
doesn't work. You said that the mixin tries to interpret the
expression `cast(bool)(embeddedTest.bits & <enumName>)` at
compile time, but I don't understand why that would be so when
the storage is auto and not enum. I guess mixin doesn't work
quite like I thought it did; it's not quite the equivalent of
pasting the mixed-in code.
- Enum template with mixin, need 'this' Meta via Digitalmars-d-learn
- Re: Enum template with mixin, need 'th... ketmar via Digitalmars-d-learn
- Re: Enum template with mixin, need 'th... Meta via Digitalmars-d-learn
- Re: Enum template with mixin, need... ketmar via Digitalmars-d-learn
- Re: Enum template with mixin, need 'th... Meta via Digitalmars-d-learn
- Re: Enum template with mixin, need... Meta via Digitalmars-d-learn
