Newbie Question: How to manage instances?

Peter Smet peter.smet at flinders.edu.au
Tue May 25 00:52:18 UTC 1999


<x-html><!x-stuff-for-pete base="" src="" id="0"><!DOCTYPE HTML 
PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=text/html;charset=iso-8859-1 
http-equiv=Content-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 
Transitional//EN">
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
<STYLE></STYLE>

</HEAD>
<BODY bgColor=#c8e0d8>
<DIV><FONT color=#000000 size=2>11 timesRepeat: [ album add: (Track
new)].</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT size=2>Should do the
trick.</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">
     <DIV><FONT face=Arial size=2><B>-----Original Message-----</B><BR><B>From:
     </B>Tim Cuthbertson &lt;<A
     href="mailto:timcuth at bellsouth.net">timcuth at bellsouth.net</A>&gt;<BR><B>To:
     </B>Squeak Mailing List &lt;<A
     href="mailto:squeak at cs.uiuc.edu">squeak at cs.uiuc.edu</A>&gt;<BR><B>Date:
     </B>Tuesday, May 25, 1999 9:50 AM<BR><B>Subject: </B>Newbie 
Question: How to
     manage instances?<BR><BR></DIV></FONT>
     <DIV><FONT size=2>If I create an instance, e.g.,</FONT></DIV>
     <DIV><FONT size=2>&nbsp;&nbsp;&nbsp; aTrack := Track new</FONT></DIV>
     <DIV><FONT size=2>and then create another instance, again 
using</FONT></DIV>
     <DIV><FONT size=2>&nbsp;&nbsp;&nbsp; aTrack := Track new</FONT></DIV>
     <DIV><FONT size=2>is there any way to get to the first instance, again? If
     so, how?</FONT></DIV>
     <DIV>&nbsp;</DIV>
     <DIV><FONT size=2>Suppose I created eleven instances of Track and then
     wanted to add them to an instance of Album, a subclass of Set. Even if I
     used eleven different temp variables to hold references to each Track, I am
     now faced with a similar problem for my instances of Album. If I don't
     retain the temp variable I used when I created it, I don't 
understand how to
     find it, again.</FONT></DIV>
     <DIV>&nbsp;</DIV>
     <DIV><FONT size=2>I hope this makes sense. Thanks for any 
help.</FONT></DIV>
     <DIV>&nbsp;</DIV>
     <DIV><FONT size=2>Tim</FONT></DIV>
     <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

</x-html>





More information about the Squeak-dev mailing list