From: Jim Weirich Date: 2003-10-03T13:59:48+09:00 Subject: Re: newbie question: function overloading On Thu, 2003-10-02 at 17:12, Chad Fowler wrote: > And if you'd like to see that diagrammed: > http://www.refactoring.com/catalog/replaceConditionalWithPolymorphism.html And in our particular instance, we have an even stronger reason to move to polymorphism because the condition was based on a type (rather than an enumeration in the diagram example). -- -- Jim Weirich jweirich@one.net http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)