Replies: 3 comments 10 replies
-
Most of my Forth implementations have Implementations vary, from
to
The (xxx) naming convention was in vogue a long time ago, but AFAIK it is no longer common. |
Beta Was this translation helpful? Give feedback.
-
IMHO, a word
Systems where
and the optimization part would do |
Beta Was this translation helpful? Give feedback.
-
In most Forth systems, if the system provides the word « To make «
And adding of the following word makes «
To make «
Bottom line: the lack of standardized basic factors is a significant drawback of "to", "is" and "action-of". |
Beta Was this translation helpful? Give feedback.
-
Sometimes value-flavored variables are very convenient.
One problem with them is that they are bad in meta programming, because there is no standard method to perform the action of
to
when you have a name token.In typical usage the word
to
references a word name as:But if we have the name token nt for
foo
:there is no standard way to assign
1
to the wordfoo
.For defer-flavored variables we have such a way — the words
defer@
anddefer!
that apply to xt.What a word "X" (or maybe several words) can you suggest so it can be used to assign a value to a value-flavored variable through its nt or xt?
(Update: also, "X" may apply to a qualified semantic token qt instead of nt; qt is returned by a recognizer).
value
andto
. An implementation for "X" does not matter.state
, if you like.to
using the word "X" (or several words)?Note that
to
applies to local variables, so "X" should apply to local variables as well.Beta Was this translation helpful? Give feedback.
All reactions