Re: Multmethods by arg-value

2002-12-10 Thread Damian Conway
David Whipp wrote: I was reading the "Partially Memorized Functions" thread, and the thought came to mind that what we really need, is to define a different implementation of the method for a specific value of the arg. Something like: sub days_in_month( Str $month is value{ rx:i/feb[ruary]?/ },

Re: Multmethods by arg-value

2002-12-10 Thread Adam Turoff
On Tue, Dec 10, 2002 at 11:37:58AM -0800, David Whipp wrote: > I was reading the "Partially Memorized Functions" thread, and the thought > came to mind that what we really need, is to define a different > implementation of the method for a specific value of the arg. Something > like: > > sub days_

Multmethods by arg-value

2002-12-10 Thread David Whipp
I was reading the "Partially Memorized Functions" thread, and the thought came to mind that what we really need, is to define a different implementation of the method for a specific value of the arg. Something like: sub days_in_month( Str $month, Int $year ) { ... } sub days_in_month( Str $mont