Re: The IMMEDIATE mess
- From: Elizabeth D Rather <eratherXXX@xxxxxxxxx>
- Date: Tue, 29 Aug 2006 17:17:01 -1000
Alex McDonald wrote:
Elizabeth D Rather wrote:....J Thomas wrote:
...Entirely possible. It seems to me that you're being excessively
It's possible I want things I shouldn't want.
theoretical in imagining problems where none exist on this issue.
I can't see why you claim "Tom Cruise-type hot-shots" are the only ones
interested in getting this to work. Documenting immediacy was something
that the ANS Forth committee went to great lengths to eliminate
(section A.6.1.2033 POSTPONE);
<quote>
COMPILE was designed to be applied to non-immediate words and [COMPILE]
to immediate words. This burdens the programmer with needing to know
which words in a system are immediate. Consequently, Forth standards
have had to specify the immediacy or non-immediacy of all words covered
by the Standard. This unnecessarily constrains implementors.
</quote>
What makes state-smart words different? If my implementation of word X
can't be POSTPONEd correctly because it's state-smart, but your X can,
that seems to me a fundamental burden on the programmer much worse than
the immediacy problem the standard fixed, as the list of words can very
from system to system -- and they can all still claim ANS compliance
without documenting them. I for one see it to be a problem worthy of
discussion. If serious professionals think otherwise, I'm baffled as to
why they might consider program portability and correctness an optional
feature. Enlightenment, please.
Well, JET, Andrew, and I have all agreed that state-smart words are best avoided. The few that survive in the standard that may cause trouble (e.g., TO) have warnings against POSTPONEing them. IMO if you have implemented some standard word in such a way that there are extra restrictions on it (e.g. it isn't POSTPONEable) you should document those restrictions, and your system is standard with those limitations.
I'm all in favor of program portability and correctness, but I really don't see a problem here unless one is trying to do something really bizarre to prove a point (such as JET's DUP example).
Cheers,
Elizabeth
--
==================================================
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310-491-3356
5155 W. Rosecrans Ave. #1018 Fax: +1 310-978-9454
Hawthorne, CA 90250
http://www.forth.com
"Forth-based products and Services for real-time
applications since 1973."
==================================================
.
- References:
- The IMMEDIATE mess
- From: J Thomas
- Re: The IMMEDIATE mess
- From: Andrew Haley
- Re: The IMMEDIATE mess
- From: J Thomas
- Re: The IMMEDIATE mess
- From: Andrew Haley
- Re: The IMMEDIATE mess
- From: J Thomas
- Re: The IMMEDIATE mess
- From: Elizabeth D Rather
- Re: The IMMEDIATE mess
- From: Alex McDonald
- The IMMEDIATE mess
- Prev by Date: Re: The IMMEDIATE mess
- Next by Date: Re: The IMMEDIATE mess
- Previous by thread: Re: The IMMEDIATE mess
- Next by thread: Re: The IMMEDIATE mess
- Index(es):
Relevant Pages
|