C#5 desiderata
Robert Jacques
sandford at jhu.edu
Fri May 28 18:03:38 PDT 2010
On Fri, 28 May 2010 19:52:46 -0400, bearophile <bearophileHUGS at lycos.com>
wrote:
> Simen kjaeraas:
>> Neat. Worthy an @keyword, I think. "@flag enum foo {...}"
>
> It's cute. But Don hates attributes :-) Recently I have created a thread
> about this, and some one has written a good enough implementation in
> normal D code, that can be "good enough".
Also, don't forget CTFE makes this simple to roll your own:
enum foo { bar = 1 << 0, bar2 = 1<<1, ... }
More information about the Digitalmars-d
mailing list