On Wed, Nov 30, 2005 at 12:18:40PM +0100, Leopold Toetsch wrote: > Parrot didn't throw exceptions on param or result count mismatch > until now, and still doesn't. [1] > [1] all PGE and PGE-based stuff is failing, when both are turned on
Exceptions should still be the default, even if PGE needs some changes. I agree with you that it should be possible to avoid throwing exceptions, but the error bits aren't the way: they're dynamic, which makes it difficult for compilers to reliably set parameter exception policy. Allowing too few parameters is already possible through the extensive use of :optional. As for the too-many case: If we add a :last flag which means "any additional incoming values should be ignored", then that's covered too. Then users can avoid throwing exceptions in all cases, if that's what they want. Patrick, would that work for you? For that matter, did you know that your code dies when parameter counts are enforced? -- Chip Salzenberg <[EMAIL PROTECTED]>