[Issue 6946] Compile-time flags generator

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 3 09:08:05 PDT 2014


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



--- Comment #10 from bearophile_hugs at eml.cc 2014-04-03 09:07:50 PDT ---
(In reply to comment #9)

> although having mixin assignment syntax would make this
> clearer. Nice idea BTW.

The point of giving it a name in some way (with a string) is because later you
can use some trait to ask for its name. I am not suer how important this is.

The idea comes from Python namedtuples:

>>> from collections import namedtuple
>>> Three = namedtuple("Two", "a b")
>>> Three(1, 2)
Two(a=1, b=2)

-- 
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