'Browser openBrowser' confusion
Joshua 'Schwa' Gargus
schwa at cc.gatech.edu
Thu Oct 30 04:13:41 UTC 2003
Hi there,
I am a teaching assistant for CS 2340 (AKA "the Squeak class") at
Georgia Tech. So far, two separate groups of students have been
confused because they have tried:
b := Browser openBrowser
and have expected (quite reasonably, IMHO) to have a reference to an
instance of Browser instead of the class itself.
Is there any principled reason that almost all of the methods (the
exceptions being #new and #prototypicalToolWindow) in the 'instance
creation' category fail to return an instance? This seems like a bug
to me.
I checked the senders of #openBrowser, and nothing seems like it would
break if an instance were returned, so If others agree, then I
volunteer to write a fix. Heck, I'll do it anyway. Look for it in a
few minutes.
Joshua
More information about the Squeak-dev
mailing list
|