On 6 janv. 2014, at 13:30, Alexandre Bergel <alexandre.ber...@me.com> wrote:

> You may need to do this if you are using proxies.

The fact that #== is not sent is actually really useful for proxies.
Because if #== were intercepted by the proxy and forwarded to the target then 
there is no straightforward way to make the distinction between two proxies on 
the same object.
And if messing with identity breaks all weak maps used for caching proxies. 

> 
> Alexandre
> 
> 
> On Jan 6, 2014, at 8:52 AM, Igor Stasenko <siguc...@gmail.com> wrote:
> 
>> 
>> 
>> 
>> On 6 January 2014 10:56, Clément Bera <bera.clem...@gmail.com> wrote:
>> Hello,
>> 
>> here I have a class
>> 
>> A>>==
>>    ^ true
>> 
>> Now:
>> a := A new.
>> b := A new.
>> a == b "Answers false"
>> a perform: #== with: b "Answers true"
>> 
>> Do I have to remove the usage of the byte code for #== in the compiler to be 
>> able to override == ?
>> 
>> 
>> may i ask why you need to override it?
>> 
>> 
>> -- 
>> Best regards,
>> Igor Stasenko.
> 
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> 
> 
> 
> 


Reply via email to