Re: Confused about class equality

2010-04-03 Thread Jacob Carlborg
On 4/3/10 07:03, strtr wrote: What I probably mean to ask is : In the code below, for what kind of i1 and i2 would the output be like this : - Same Value. 3 : 5B536C 59D020 3 : 59CE0C 59CEF0 5 : 5B536C 59D020 5 : 59CE0C 59CEF0 - if( i1 !is null i2 !is null i2.value == i1.value

Re: Confused about class equality

2010-04-03 Thread strtr
Jacob Carlborg Wrote: On 4/3/10 07:03, strtr wrote: What I probably mean to ask is : In the code below, for what kind of i1 and i2 would the output be like this : - Same Value. 3 : 5B536C 59D020 3 : 59CE0C 59CEF0 5 : 5B536C 59D020 5 : 59CE0C 59CEF0 - if( i1

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