Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!pplace!khaw From: khaw@pplace.COM (Mike Khaw) Newsgroups: comp.lang.smalltalk Subject: Re: Variable scoping in Smalltalk Message-ID: <480@parcplace.pplace.COM> Date: 29 Mar 89 18:38:13 GMT References: <3350@entire.UUCP> Distribution: comp Organization: ParcPlace Systems, Palo Alto, CA Lines: 29 <3350@entire.UUCP>, by elt@entire.UUCP (Edward L. Taychert): - In article <1721@scubed.UUCP>, warner@s3snorkel.ARPA (Ken Warner) writes: -> Along the same lines, how does one find out the super-class so that one can -> access the super class-pool variables without explicitly stateing the name of -> the super class. - - Try - - self class superclass - - to get the name of the superclass, - Don't have a clue on how to get at its class-pool though. Class "Class" implements the methods "sharedPools" and "allSharedPools", which respond with a Set of the names of the pools that are specified in the receiver or in the receiver and all its superclasses, respectively (cf. Goldberg and Robson, Smalltalk-80: The Language and Its Implementation, p 276). Each pool is a Dictionary, so once you know the name of a pool, you can send the pool the message "keys", which responds with a Set of the names of its keys. Mike Khaw ParcPlace Technical Support -- E-Mail: Internet=khaw@parcplace.com, UUCP={uunet,sun,decwrl}!pplace!khaw USPS: Parcplace Systems, Inc., 2400 Geng Road, Palo Alto, CA 94303 Phone: (415) 859-1052