About method literals

Bergel Alexandre bergel at iam.unibe.ch
Wed May 8 15:49:11 UTC 2002


Hello,

There is something weird with method literal associations. Let's assume I have :
-=-=-=-=-=-=
Test>>foo
  ^Object

Test2>>Test
  ^Object
-=-=-=-=-=-=

In each compiled method there is a set of association #Object->Object where #Object is the symbol, and Object is the class "Object".

Why this expression is true ?

((foo methodDict at: #bar) literals at: 1) identityHash = ((Test2 methodDict at: #foo) literals at: 1) identityHash

=> true 



Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._
Bergel Alexandre  http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^



More information about the Squeak-dev mailing list