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 > Re: The ?PAIRS ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 7 Topic 4020 of 4160
Post > Topic >>

Re: The ?PAIRS word

by Albert van der Horst <albert@[EMAIL PROTECTED] > Apr 27, 2008 at 11:30 AM

In article <481380e0$0$869$ba4acef3@[EMAIL PROTECTED]
>,  <Montesquiou> wrote:
>Bonjour to all,
>
>In the archive of the group, I found the word "?PAIRS"
>as in
>
>: ENDCASE  4 ?PAIRS COMPILE DROP
>                    BEGIN SP@[EMAIL PROTECTED]
 CSP @[EMAIL PROTECTED]
 = 0=
>                      WHILE 2 [COMPILE ENDIF REPEAT
>                    CSP ! ; IMMEDIATE
>
>According the FAQ, the ?PAIRS word was  FIG-Forth's way of implementing a
>small amount of syntax checking.
>
>Is "Number ?PAIRS" similar to ...  over <> if (error message) then ...;

I'll have a look...
cvs update -r1.1 ci86.gnr

Almost (leave out the OVER).
\ Give an error if A and B don't match.
: ?PAIRS   <> 13 ?ERROR ;

As in
lina -e
SEE ?PAIRS

Actually they abused - for <> those days.

:-)

>
>Thanks for the help.

Groetjes Albert

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




 7 Posts in Topic:
The ?PAIRS word
<Montesquiou>   2008-04-26 21:21:52 
Re: The ?PAIRS word
Jenny Brien <jennybrie  2008-04-26 12:55:31 
Re: The ?PAIRS word
<Montesquiou>   2008-04-26 22:30:28 
Re: The ?PAIRS word
Andrew Haley <andrew29  2008-04-27 04:21:28 
Re: The ?PAIRS word
Albert van der Horst <  2008-04-27 11:30:34 
Re: The ?PAIRS word
<Montesquiou>   2008-04-27 17:30:01 
Re: The ?PAIRS word
astrobe <fdubois76@[EM  2008-04-28 04:29:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Jul 18 20:33:10 CDT 2008.