Re: some queries

From: Rick VanNorman <rvn_at_forth.com>
Date: Sun, 27 Dec 1998 12:24:55 -0800

>Original sender: Don Groves <groves_at_acm.org>
>
>I'll jump in on this one. I think !+ means store at the address
>on the stack and leave an incremented address. So the stack comment
>would be: ( x addr -- addr+CELLsize). This is the Forth equivalent
>of the C statement: *p++ = x;
>
>Maybe it would be better named !++ ;-)

Don,
The function is historic in PolyForth and is exactly as I
described it. This is much more useful for building tables, ie

   PAD
   10 !+
   12 !+
   222 !+
   DROP

Otherwise, you would be typing:

   PAD
   10 SWAP !+
   12 SWAP !+

etc.

Rick

.
Received on Sun Dec 27 1998 - 12:24:55 PST


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 08-Feb-2012. Archive updated nightly.