Unexpected MetaClass Behavior
Eric Arseneau
eat at huv.com
Wed Jul 12 14:33:39 UTC 2000
Oops, shoot me. I guess I forgot to read the complete mail. I was just too
proud of myself for having figured out the problem and wanted to let
everyone know it ;-> Now promptly removing foot deeply inserted into mouth
:)
> This is a standard problem. I've done this so many times myself.
>
> It is not an unexpected behavior. Here is the issue. Take a look at the
> variable you are storing the resultof the FillInTheBlank, called
> name. You
> have not defined it as a temp, therefore it must be somewhere. Well, it
> turns out that that somewhere is the instance variable of a
> class. So what
> you've done is directly written over the inst var that holds the
> name of the
> class.
>
> This is an issue with depending on the automatic cactching of
> missing temps
> and such. One does not tend to go back and check out the semantics of the
> vars they are using when problems arise.
>
> > !TestObject class methodsFor: 'instance creation' stamp: 'kn
> > 7/11/2000 14:18'!
> > new
> > name _ FillInTheBlank request:'Enter' initialAnswer:''. ! !
>
>
More information about the Squeak-dev
mailing list
|