Finding Instance Variables
Hello. I'm a Smalltalk novice. I'm wondering: how would I get the set of instance variables for a particular class? I see Class has an allClassVarNames method, but I don't see something analogous for instance variables. Thanks. -- Ray
allInstVarNames :) Ben On Sep 30, 2011, at 2:27 AM, Raymond Brinzer wrote:
Hello. I'm a Smalltalk novice. I'm wondering: how would I get the set of instance variables for a particular class? I see Class has an allClassVarNames method, but I don't see something analogous for instance variables.
Thanks.
-- Ray
if you don't see what you're looking for in Class be sure to check its superclasses ClassDescription and Behavior (allInstVarNames is defined in Behavior). Similarly for Object, don't forget to check ProtoObject. On Thu, Sep 29, 2011 at 8:31 PM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
allInstVarNames :)
Ben
On Sep 30, 2011, at 2:27 AM, Raymond Brinzer wrote:
Hello. I'm a Smalltalk novice. I'm wondering: how would I get the set of instance variables for a particular class? I see Class has an allClassVarNames method, but I don't see something analogous for instance variables.
Thanks.
-- Ray
participants (3)
-
Benjamin -
Larry White -
Raymond Brinzer