Re: enum values without initializer

2010-04-06 Thread Daniel Keep
bearophile wrote: Nick Sabalausky: If you don't want that doplication you can also write: enum auto f = Foo(); Can't you do: enum f = Foo(); ? In my opinion that's a semantic mess, I don't write that. auto is for automatic local type inference and enum is to ask for a compile time

Re: enum values without initializer

2010-04-04 Thread bearophile
Nick Sabalausky: If you don't want that doplication you can also write: enum auto f = Foo(); Can't you do: enum f = Foo(); ? In my opinion that's a semantic mess, I don't write that. auto is for automatic local type inference and enum is to ask for a compile time constant. Bye,

Re: enum values without initializer

2010-04-03 Thread bearophile
BCS : #1 is a bad idea as are almost all special case rules Right, I was not looking for a special case. #2 is just flat wrong 99.9% of the time. I see. Then I will think if it's right to remove that bug report or not. I have to ask. :) What does that code supposed to

Re: enum values without initializer

2010-04-03 Thread Nick Sabalausky
bearophile bearophileh...@lycos.com wrote in message news:hp8jra$1ln...@digitalmars.com... If you don't want that doplication you can also write: enum auto f = Foo(); Can't you do: enum f = Foo(); ?