home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.forth
- Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!rolfe
- From: rolfe@fraser.sfu.ca (Christopher John Rolfe)
- Subject: +LOOP in JFORTH
- Message-ID: <rolfe.727955617@sfu.ca>
- Sender: news@sfu.ca
- Organization: Simon Fraser University, Burnaby, B.C., Canada
- Date: Mon, 25 Jan 1993 09:53:37 GMT
- Lines: 16
-
- What's the deal with 'DO' and '+LOOP' in JFORTH?
- Normally it's
- : myword limit index DO increment +LOOP ;
- If you want a loop to decrement with '-1 +LOOP', in some FORTHS you
- have to put a strange number in limit ( as in EMACS where the loop
- always ends at the boundary between 'limit' and 'limit minus 1' ).
- But in JFORTH I can't seem to get a decrementing loop at all. Perhaps there
- is an error check to see if index is less than limit? But then WHY
- have the word '+LOOP'???
-
- Puzzled.
- --
- Chris | 2617 East 4th,| [047] [037]
- rolfe@sfu.ca | Van., B.C. | that serial, major/minor,
- Simon Fraser University | V5M 1K5 | tonic/subdom, inversion
- Burnaby, Canada | Canada | thing is hurting my brain.
-