const again

Sean Kelly sean at f4.ca
Thu Dec 6 15:40:12 PST 2007


Ary Borenszweig wrote:
> Sean Kelly wrote:
>> One thing that concerns me.  If we assume that "enum x = 3" is simply 
>> shorthand for "enum { x = 3 }" then all such declarations would be 
>> implicitly typed as integers, which doesn't sound like you want.  It 
>> seems you're suggesting "enum" be treated more like a storage class 
>> here?  I'm not sure if I like that idea.
> 
> Why not
> 
> macro x = 3;

Assuming that we need a new keyword, I like "macro" better.  We're going 
to get it in 2.0 anyway, right?


Sean



More information about the Digitalmars-d mailing list