Newbie Question: How to manage instances?

Tim Cuthbertson timcuth at bellsouth.net
Tue May 25 00:26:32 UTC 1999


<x-html><!x-stuff-for-pete base="" src="" id="0"><!DOCTYPE HTML 
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3401" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c8e0d8>
<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></BODY></HTML>

</x-html>





More information about the Squeak-dev mailing list