Re: What is lucky7 (was RE: What is Forth?)

Liste des GroupesRevenir à cl forth 
Sujet : Re: What is lucky7 (was RE: What is Forth?)
De : albert (at) *nospam* spenarnc.xs4all.nl
Groupes : comp.lang.forth
Date : 02. Jul 2025, 13:01:12
Autres entêtes
Organisation : KPN B.V.
Message-ID : <nnd$00c15d95$6af51cbf@453956be7208778f>
References : 1 2
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <nnd$6da712e9$10ba1712@ac6bb1addf3a4136>,
 <albert@spenarnc.xs4all.nl> wrote:
 <SNIP>
You can combine programs with { and } like so:
>
{ 1 2 + 7 * }     17 .
   17 OK
>
The commands between { and } are not executed directly, the sequence
leaves a recipee.
It can be RUN.
>
RUN .
21 OK
>
You can give a recipee a name, analogous to CONSTANT
{ 1 2 + 7 * } : TEST
OK
>
Now you can use TEST like all other words in de the dictionary.
>
This must be
TEST TEST + .
42  OK
{ TEST 1 + . } RUN
22 OK
--
The Chinese government is satisfied with its military superiority over USA.
The next 5 year plan has as primary goal to advance life expectancy
over 80 years, like Western Europe.

Date Sujet#  Auteur
2 Jul 25 o Re: What is lucky7 (was RE: What is Forth?)1albert

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal