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


Nick Treleaven <ntrel-pub...@yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ntrel-pub...@yahoo.co.uk


--- Comment #7 from Nick Treleaven <ntrel-pub...@yahoo.co.uk> 2014-04-02 
09:14:47 PDT ---
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"));

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

Reply via email to