[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: newbie question: function overloading

Chad Fowler

10/2/2003 9:12:00 PM

1 Answer

Jim Weirich

10/3/2003 5:00:00 AM

0

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/replaceConditionalWithPolymor...

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://onest...
-----------------------------------------------------------------
"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)