iterating through members of bitfields

drug via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 20 00:13:08 PST 2017


20.01.2017 04:21, Nestor пишет:
> On Wednesday, 18 January 2017 at 12:52:56 UTC, drug wrote:
>> I've "solved" the same problem by using AliasSeq to generate bitfields
>> so that for iterating over bitfields I can iterate over alias sequence
>> and mixin code. Not very good but it works.
>
> Interesting, could you provide a working example?
Something like that https://goo.gl/C4nOqw
Because you generate code iterating over AliasSeq you can do almost 
everything you need - for example generate setters/getters.


More information about the Digitalmars-d-learn mailing list