From: Matt Gushee Date: 2002-11-03T11:58:24+09:00 Subject: Re: PullDownList -- failings are obvioius Ooh, I think I said something dumb: On Sun, Nov 03, 2002 at 11:22:09AM +0900, Matt Gushee wrote: > > 1) Initialize should return self, not @frame. and > But this really confuses things: > > > @frame.pack > > end > > In fact, that's not just un-Tk-like, it violates the expectations of > just about every OO programmer on the planet, since it means that > > PullDown.new > > doesn't return an instance of PullDown! Bzzzt! You've probably realized it already, but that couldn't be true ... otherwise you would have to explicitly return self every time you write an initialize() method. I guess new is so written as to guarantee that it always returns self. But I stand by the rest of what I said. -- Matt Gushee When a nation follows the Way, Englewood, Colorado, USA Horses bear manure through mgushee@havenrock.com its fields; http://www.havenrock.com/ When a nation ignores the Way, Horses bear soldiers through its streets. --Lao Tzu (Peter Merel, trans.)