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



--- Comment #8 from bearophile_h...@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: -------

Reply via email to