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 $month is value{ rx:i/feb[ruary]?/ }, Int $year ) is cached { ... } Dave. -- Dave Whipp, Senior Verification Engineer, Fast-Chip inc., 950 Kifer Rd, Sunnyvale, CA. 94086 tel: 408 523 8071; http://www.fast-chip.com Opinions my own; statements of fact may be in error.