Storing and Retrieving Point
Stephen Pair
spair at advantive.com
Thu Sep 27 20:38:42 UTC 2001
Try this:
pt _ Point new.
pt _ 25 at 125.
dict _ Dictionary new.
dict at: 'first' put: {'text'. pt}.
readPt _ ((dict at: 'first') at: 2). "readPt is now a Symbol"
> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
> Behalf Of Ken G. Brown
> Sent: Thursday, September 27, 2001 4:09 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: Storing and Retrieving Point
>
>
> I'm having trouble storing and retrieving Points. What am I
> doing wrong?
>
> pt _ Point new.
> pt _ 25 at 125.
> dict _ Dictionary new.
> dict at: 'first' put: #('text' pt).
> readPt _ ((dict at: 'first') at: 2). "readPt is now a Symbol"
>
> Thx for any pointers.
> Ken
>
>
More information about the Squeak-dev
mailing list
|