It seems that this issue can be fixed by modifying the = method in Association.
Same behavior in Squeak 4.2 btw�-----------------
Benoit St-Jean
Yahoo! Messenger: bstjean
A standpoint is an intellectual horizon of radius zero.
(Albert Einstein)
From: Ciprian Teodorov <ciprian.teodorov@gmail.com>
To: Pharo-project@lists.gforge.inria.fr
Sent: Saturday, December 8, 2012 11:11:44 AM
Subject: Re: [Pharo-project] strange == behavior
by the way, we have the same thing in 1.0, 1.1, 1.3.
On Sat, Dec 8, 2012 at 5:10 PM, Ciprian Teodorov <ciprian.teodorov@gmail.com> wrote:
Hi guys,Playing with some recursive data-structure I have found some strange piece of behavior in Pharo.If in an workspace we try to evaluate:a := Association new.a key: 3.a value: a.a == a value.the first time we get "true", the second we get an infinite loop...�A simple workaround is to declare "a":|a|a := Association new.a key: 3.a value: a.a == a value.
My question now is: Is this a bug or a feature ?By the way the same thing happens in 1.4 and 2.0 equally.By the way, in Pharo 2.0 doing cmd + . erases the lines selected in the workspace replacing them by "."�Cheers,--
Dr. Ciprian TEODOROV
Ing�nieur�D�veloppement�CAO
t�l : 06 08 54 73 48
mail :�ciprian.teodorov@gmail.com
www.teodorov.ro
--
Dr. Ciprian TEODOROV
Ing�nieur�D�veloppement�CAO
t�l : 06 08 54 73 48
mail :�ciprian.teodorov@gmail.com
www.teodorov.ro