[Issue 6946] Compile-time flags generator

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 2 10:19:29 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=6946



--- Comment #8 from bearophile_hugs at eml.cc 2014-04-02 10:19:23 PDT ---
(In reply to comment #7)
> A note about syntax:
> 
> > mixin(bitFlags!size_t("MyFlags", "A B C D"))
> 
> Wrapping enum code in a mixin template could allow:
> 
> mixin BitFlags!size_t("A B C D")) MyFlags;
> 
> Or if D mixin syntax was changed similar to alias assignment syntax:
> 
> mixin MyFlags = BitFlags!size_t("A B C D"));

Is the name "MyFlags" not useful (as shown in the syntax you quote)?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list