Smalltalk language limitation ?
Yar Hwee Boon
hboon at motionobj.com
Sun Dec 5 09:05:38 UTC 2004
On Sun, 5 Dec 2004 05:20:31 -0000, Aaron Gray <angray at beeb.net> wrote:
>>> 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 ?
Now, convert it into something like what is below and paste it into a
browser (the body should be valid syntax) and see what is the result?
=======
B>>anotherMethod
self doSomething
A>>aMethod: aParam
aParam anotherMethod
=======
--
Regards
HweeBoon
MotionObj
More information about the Squeak-dev
mailing list
|