Re: pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Leopold Toetsch
On Nov 30, 2005, at 22:16, Chip Salzenberg wrote: Say, I just noticed this: On Wed, Nov 30, 2005 at 12:18:40PM +0100, Leopold Toetsch wrote: .sub foo push_eh handler get_params '(0)', $P0# no .params yet - sorry I remember at one point that get_params had to be the fi

Re: pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Chip Salzenberg
On Thu, Dec 01, 2005 at 01:45:49AM +0100, Leopold Toetsch wrote: > While strict argument checking is and was always in the pdd03, it was > not enforced and is only checkable since today. Therefore I'd like to > keep current settings until after the release. Works for me. -- Chip Salzenberg <[EM

Re: pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Leopold Toetsch
On Nov 30, 2005, at 22:08, Chip Salzenberg wrote: On Wed, Nov 30, 2005 at 02:39:58PM -0600, Patrick R. Michaud wrote: 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_COUN

Re: pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Chip Salzenberg
Say, I just noticed this: On Wed, Nov 30, 2005 at 12:18:40PM +0100, Leopold Toetsch wrote: >.sub foo > push_eh handler > get_params '(0)', $P0# no .params yet - sorry I remember at one point that get_params had to be the first opcode in the sub. I didn't like that, but I

Re: pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Chip Salzenberg
On Wed, Nov 30, 2005 at 02:39:58PM -0600, Patrick R. Michaud wrote: > 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. Excellent. Leo, would you be

Re: pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Chip Salzenberg
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: > >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 :

Re: pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Patrick R. Michaud
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 param

Re: pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Will Coleda
On Nov 30, 2005, at 2:50 PM, Patrick R. Michaud wrote: On Wed, Nov 30, 2005 at 11:00:36AM -0800, Chip Salzenberg wrote: 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 P

Re: pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Patrick R. Michaud
On Wed, Nov 30, 2005 at 11:00:36AM -0800, Chip Salzenberg wrote: > 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 ar

Re: pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Chip Salzenberg
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 so

pdd03 and Overflow/Underflow - r10269

2005-11-30 Thread Leopold Toetsch
Parrot didn't throw exceptions on param or result count mismatch until now, and still doesn't. [1] But, I have invented 2 more error flag bits [2], which can enable stricter argument checking and the exception is catchable in the subroutine itself now: .include "errors.pasm" errorson .P