Smalltalk language limitation ?

Aaron Gray angray at beeb.net
Sun Dec 5 05:20:31 UTC 2004


>> If my understanding is right then you cannot send a message to an object 
>> passed as a parameter to a method of another class.
>
> Why not show us a sample of what you mean.

Okay :-)

    class B
        anotherMethod:
            self doSomething:

    class A
        aMethod: aParam
            aParam anotherMethod:

That is probably not legal SmallTalk from what I understand on the VM ?

Or are method names unique ?

Aaron
 





More information about the Squeak-dev mailing list