On Dienstag 17 März 2009, Sergey Plis wrote:
> Hi Bernd,
>
> It seems that ftuck should be an official alias to funder, for more
> standard naming and for compatibility with gforth.
>
> If it is not against some rules, can you add it?

Done.

> By the way, why it is a bad idea to use PAD area for scratch as I am
> doing in my history patch? It does not seem to break anything. What
> reading should I do to fill in the knowledge gap that leads to not
> knowing this rule?

Using PAD won't break anything from the system - an ANS Forth system is 
not allowed to use PAD for its own purposes. Using PAD for the system, 
like for history browsing however may break applications that use PAD.

You can read it in the ANS Forth Standard or in the Forth 200x draft 
document: http://www.forth200x.org/documents/forth07-2.pdf page 18, 
section 3.3.3.6 (other transient regions):

"The size of the scratch area whose address is returned by PAD shall be 
at least 84 characters. The contents of the region addressed by PAD are 
intended to be under the complete control of the user: no words defined
in this Standard place anything in the region, although changing 
data-space allocations as described in 3.3.3.2 Contiguous regions may 
change the address returned by PAD. Non-standard words provided by an
implementation may use PAD, but such use shall be documented."

ACCEPT is a standard word, and inside ACCEPT history browsing would be 
possible. So it's not allowed to use PAD there.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://www.jwdt.com/~paysan/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to