[Issue 6946] Compile-time flags generator

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 11 04:25:06 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=6946

--- Comment #12 from Nick Treleaven <ntrel-public at yahoo.co.uk> ---
(In reply to bearophile_hugs from comment #11)
> (In reply to comment #10)
> > mixin BitFlags!q{A, B, C, D} MyFlags;

A better reason for this syntax is that is gives a name for ddoc to use for
documentation. Unfortunately the members can't be documented though.

> Is your version using a function like isReservedWord() I have shown in the
> first posts here?

I haven't actually implemented it, it could do.

--


More information about the Digitalmars-d-bugs mailing list