On Wed, Nov 30, 2005 at 03:27:52PM -0500, Will Coleda wrote: > On Nov 30, 2005, at 2:50 PM, Patrick R. Michaud wrote: > >Short answer: something like a ":last" flag would be excellent. > > > >Longer answer: In PGE, each rule is a parrot sub, and some rules > >can be parameterized by various parameters, which means that the > >number > >of arguments to a rule can vary depending on the rule and the > >context in which it can be called. So, there's not a hard-and-fast > >parameter list that is going to work in all situations and provide > >the flexibility we'll want. Thus, we really ought to have a way to > >indicate that a rule (parrot sub) can still be safely run even if > >called with more parameters than it expects. > > Isn't this what :slurpy is for? How else would you even use extras?
Oh, I suppose I could :slurpy any extra parameters into a dummy array. But that probably involves creating a dummy empty array on every call to the parrot sub. At any rate, I found and fixed the two PGE subs that weren't declaring their (unused) parameters. All p6rules tests now appear to pass in r10278 with .PARROT_ERRORS_PARAM_COUNT_FLAG enabled. Pm