Object pointers

Chris Becker chb99 at msn.com
Sat Mar 23 21:59:45 UTC 2002


Doug Way wrote:
>
>But you can do something similar with #become:...
>well, maybe it's not that similar. :)  Try this:
>
>var := 'an object'.
>pvar := var.
>
>pvar become: 'new value'.
>
>var ==> 'new value'

Oooh ... a little ProtoObject shell game ... very interesting!

FYI -- I dusted off VisualSmalltalk 3.1 and tried the 'abc' == 'abc'
example: it returns false! Squeak returns true. John hit it right on the
head!

Thank you Doug, Alan, Hannes, Bert, John, and everyone else for your input
on this topic. You've been a great help!

Chris





More information about the Squeak-dev mailing list