Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!seismo!mcnc!gatech!gitpyr!krubin From: krubin@gitpyr.UUCP Newsgroups: comp.lang.smalltalk Subject: Smalltalk/V question Message-ID: <3060@gitpyr.gatech.EDU> Date: Sat, 7-Feb-87 17:59:49 EST Article-I.D.: gitpyr.3060 Posted: Sat Feb 7 17:59:49 1987 Date-Received: Sun, 8-Feb-87 07:52:26 EST Reply-To: krubin@gitpyr.UUCP (Kenny Rubin) Distribution: world Organization: Center for Man-Machine Systems Research, Georgia Tech Lines: 49 Keywords: Smalltalk/V This is a question concerning the use of the Smalltalk/V package put out by Digitalk. QUESTION: how does one determine the names of instances that have been created for a given class by application of the 'new' method selector? PROBLEM: when I make a modification to a given class, i.e., add/remove a new instance or class variable, I cannot save the modification (from the ClassHierarchyBrowser). Attempting to do so results in a window popping up that says "Has Instances". The solution to the problem seems to be to find all instances of the class (or subclass) and set them equal to something other than an object of the class I am trying to modify. Unfortunately, I can't seem to be able to locate the names, and more so, who is using them (containing the names). MISC: I can offer the following information about the problem: 1) In class Behavior there is a method names "allInstances" According to the Programming Handbook, this returns an array of all the instances of the receiver. When I send this selector to a class name, I get back an array of the of classNames and not the instances names of the class. form #(a className a className...). Thus I get an array of classNames rather than the names of the instances of the class. 2) I have used the inspect selector to examine the Smalltalk systemDictionary. However, this does not provide the information I need. 3) So many other tests that I won't bother to list them. I would sure appreciate any help on this issue. We are implementing a fairly substantial modeling system (expert system) and problems like this are killing our schedule. Thanx in advance. <----------------------------------------------------------------------> Kenneth S. Rubin (404) 894-2348 Center for Man-Machine Systems Research School of Industrial and Systems Engineering Georgia Institute of Technology Post Office Box 35826 Atlanta, Georgia 30332 Majoring with: School of Information and Computer Science ...!{akgua,allegra,amd,hplabs,ihnp4,seismo,ut-ngp}!gatech!gitpyr!krubin <-------------------------- LINE EATER'S FOOD ------------------------->