View Single Post

  #4 (permalink)  
Old 08-12-2003, 06:17 PM
Mark van Gulik
Guest
 
Posts: n/a
Re: Extends is evil?

"Peter van Rooijen" <peter@vanrooijen.com> wrote in message news:<3f38f235$0$49110$e4fe514c@news.xs4all.nl>...
> "Guillermo Schwarz" <guillermo_schwarz@hotmail.com> wrote in message
> news:3f38e49d@news.totallyobjects.com...

[...]
> > or a more real example: a Dog is a Cat that barks
> > instead of meows, so meow() calls bark().

>
> I've never seen code with such classes, much less it being called a "real
> example". Now I am sure you are kidding.


How about OrderedCollection>>at:? Or Dictionary>>add: (if you think
that one's ok, you must instead have a complaint with
Dictionary>>select. Smalltalk has plenty of other meows and barks.
It gets by, but there are some truly ancient potholes that will never
be filled.
Reply With Quote