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
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,
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
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();
?