Talk About Network



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: why is it c...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 13 Topic 3991 of 4065
Post > Topic >>

Re: why is it called a buffer

by Bruce McFarling <agila61@[EMAIL PROTECTED] > Apr 10, 2008 at 09:58 AM

On Apr 10, 9:04=A0am, tinke...@[EMAIL PROTECTED]
 (Tinkerer) wrote:
> m_l_g3 <m_l...@[EMAIL PROTECTED]
> wrote:
> My (admittedly very brief) experience is that the comma operator can't
> poke data into previously named storage, which would make it unsuitable
> for what I was hoping it would be useful for.

It ALLOTS a cell and stores the top value in stack in that cell. So:

48 CELLS buffer: my-buffer 0 ,

does not put 0 at the head of my-buffer, but after the end ... *first*
buffer did an ALLOT, and *then* , did an ALLOT (or equivalent).

OTOH,

CREATE my-buffer 0 , 47 CELLS ALLOT

would stuff a 0 at the head of a buffer "my-buffer" followed by 47
cells of uninitialized dataspace.

Often that kind of use of ``,'' will be inside a defining word, with
the ``,'' helping to build the word being defined when the defining
word executes.




 13 Posts in Topic:
why is it called a buffer
tinkerer@[EMAIL PROTECTED  2008-04-09 23:52:07 
Re: why is it called a buffer
Jerry Avins <jya@[EMAI  2008-04-09 11:13:32 
Re: why is it called a buffer
Elizabeth D Rather <er  2008-04-09 07:37:55 
Re: why is it called a buffer
tinkerer@[EMAIL PROTECTED  2008-04-10 23:04:19 
Re: why is it called a buffer
Clever Monkey <spamtra  2008-04-14 12:56:45 
Re: why is it called a buffer
m_l_g3 <m_l_g3@[EMAIL   2008-04-09 14:02:59 
Re: why is it called a buffer
tinkerer@[EMAIL PROTECTED  2008-04-10 23:04:19 
Re: why is it called a buffer
Elizabeth D Rather <er  2008-04-10 07:32:27 
Re: why is it called a buffer
tinkerer@[EMAIL PROTECTED  2008-04-15 02:05:03 
Re: why is it called a buffer
Albert van der Horst <  2008-04-17 02:27:04 
Re: why is it called a buffer
vandys@[EMAIL PROTECTED]   2008-04-17 02:33:44 
Re: why is it called a buffer
Bruce McFarling <agila  2008-04-10 09:58:19 
Re: why is it called a buffer
Jonah Thomas <jethomas  2008-04-14 13:31:36 

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 May 17 4:41:22 CDT 2008.