Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth Mac > Re: RfD - THROW...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 124 of 159
Post > Topic >>

Re: RfD - THROW codes and Iors

by Albert van der Horst <albert@[EMAIL PROTECTED] > Aug 22, 2006 at 07:22 PM

In article <44e9c976.329081656@[EMAIL PROTECTED]
>,
Stephen Pelc <stephenXXX@[EMAIL PROTECTED]
> wrote:
>ThrowIors.txt
>Stephen Pelc, 21 August 2006
>
>Rationale
>=========
>
>Problem
>-------
>Error codes returned by some words, e.g. ALLOCATE are not specified,
>and an application has no entitlement to use them as THROW codes.
>The leads to very clumsy code of the form:
>
>  ALLOCATE IF  <lit> THROW  ENDIF
>
>or
>
>: ?THROW    \ ior throwcode --
>  SWAP IF  THROW  ELSE  DROP  THEN  ;
>
>  ALLOCATE <lit> ?THROW
>
>However, we also see many instances of code such as
>
>  ALLOCATE THROW
>
>which leads to silent aborts when a system issues -1 THROW (as
>it is currently entitled to) or incorrect error messages.

I'm so strongly in favor of throwable io-codes that I sacrificed
ISO-compatibility in this respect in ciforth.


>--
>Stephen Pelc, stephenXXX@[EMAIL PROTECTED]
 Albert

--
-- 
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- like all pyramid schemes -- ultimately falters.
albert@[EMAIL PROTECTED]
 http://home.hccnet.nl/a.w.m.van.der.horst
 




 5 Posts in Topic:
RfD - THROW codes and Iors
stephenXXX@[EMAIL PROTECT  2006-08-21 14:56:59 
Re: RfD - THROW codes and Iors
Bernd Paysan <bernd.pa  2006-08-21 17:29:48 
Re: RfD - THROW codes and Iors
Albert van der Horst <  2006-08-22 19:22:36 
Re: RfD - THROW codes and Iors
anton@[EMAIL PROTECTED]   2006-08-24 21:40:27 
Re: RfD - THROW codes and Iors
"werty" <wer  2006-09-05 11:13:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:06:29 CDT 2008.