[BUG]UndefinedObject(Object)>>error:

Ned Konz ned at bike-nomad.com
Mon Oct 13 18:38:28 UTC 2003


On Monday 13 October 2003 11:06, Andreas Raab wrote:
> > Execute the script below in a workspace in a virgin Squeak
> > 3.6 image to see the error.
>
> I did - what's wrong with it? Why should returnBar return nil instead of
> Bar? Maybe a few comments on what the bug is would be in order - what I see
> is perfectly fine and exactly to be expected.

There are two things named 'Bar': the global class, and the Foo class 
variable.

In Foo class, returnBar returns the class variable Bar.

In FooSub class (which is a subclass of Foo), returnBar returns the global 
Bar, rather than the Foo class variable.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list