[Issue 6946] Compile-time flags generator
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 2 09:15:16 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=6946
Nick Treleaven <ntrel-public at yahoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ntrel-public at yahoo.co.uk
--- Comment #7 from Nick Treleaven <ntrel-public at 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: -------
More information about the Digitalmars-d-bugs
mailing list