From: KONTRA Gergely Date: 2003-06-27T22:42:42+09:00 Subject: Re: method overloading? On 0627, Ryan Pavlik wrote: [...] > The StrongTyping module on RAA lets you do this: > > def foo(*args) > overload(args, String) { > ... > return ... > } > > overload(args, String, String) { > ... > return ... > } > > ... > > overload_default args > end [...] But this also doesn't allow one to later add a new case... I guess it needs some help from the core of the language to work... BTW I think dynamic type checking fits to the ruby design. Gergo -- +-[ Kontra, Gergely PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+