Sept. 23, 2012
9:45 p.m.
On 2012-09-23, at 23:33, Peter Hugosson-Miller <oldmanlink@gmail.com> wrote:
This is weird, I'm not seeing the problem at all!
I've always thought of *#instVarNamed:* as a sibling method to *#instVarAt:*(which maybe is more obviously an instance method). So *anAddress instVarNamed: 'street'* would return a Street, just as *anAddress instVarAt: 2* could. But anAddress, being just an instance, doesn't need to know about its class definition directly, since it can always ask its class if it needs to, so for example *anAddress class instVarNames* would return the names of all the instance variables defined in the Address class.
Now can someone please explain why that is confusing?
I don't see the problem either :P...