[Amforth] Bug in ?throw

2014-09-24 Thread Rafael Gonzalez
Hi Matthias Reviewing the file lib/ans94/core-ext/exceptions.frt : ?throw ( f exc -- ) if throw then ; : ?comp ( -- ) state @ 0= -&14 ?throw ; : ?pairs ( n1 n2 -- ) - -&22 ?throw ; I think that the definition of ?throw - as intended in ?comp and ?pairs - is not correct, as

Re: [Amforth] Bug in ?throw

2014-09-24 Thread Matthias Trute
Hi Rafael, > I think that the definition of ?throw - as intended in ?comp and ?pairs > - is not correct, as the the IF word is consuming the exception code > and not the flag. > > How about > > : ?THROW ( flag exc -- ) > SWAP IF THROW THEN DROP ; > You are right. Thank you, fix applied