Re: "Back & Forth" - Local variables

Liste des GroupesRevenir à cl forth 
Sujet : Re: "Back & Forth" - Local variables
De : sjack (at) *nospam* dontemail.me (sjack)
Groupes : comp.lang.forth
Date : 17. Mar 2025, 18:12:42
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vr9l6a$ivrn$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : tin/2.6.4-20240224 ("Banff") (Linux/6.8.0-55-generic (x86_64))
albert@spenarnc.xs4all.nl wrote:
i. {} --> 1 2 3 4
No what is that supposed to mean?
 
Ok, for the record then, Toad test and demo aids:

1) { ... }
   Set a marker and compile the code within the braces.

2) {}
   Executes the code compiled by { ... } but doesn't perform the marker,
   therefore {} can execute the code multiple times if so desired.

   The marker can be performed manually by performing {FIN} .
   {FIN} is found in other words such as E or RUN1 (they the same)
   which follow { ... } to do a one-time execution of the marked code.

   Other words execute the code multiple times in a loop and performs
   {FIN} when done:
    i. RUN
       Loops the code until TRUE is returned
    i. RUNS
       Loops the code n times
    i. GRUN
       Performs RUN and drops g-string that remained on stack
    i. FORALL
       Perform {} on all (counted) strings on the data stack
3) i.
   Print " --> " .
   It serves as a list item mark and also prints an arrow to indicate
   the output of the words that follow.
  
Summary:

i. { ... } E        \ run once
i. { ... } RUN1     \ ditto, run once
i. { ... } n RUNS   \ run n times
i. { ... } RUN      \ run while returned flag is TRUE
i. { ... } GRUN     \ perform RUN and drop a remaining g-string
i. { ... } FORALL   \ perform {} on each (counted) string on the data stack

Note: g-string is a generic string; it is referenced by address and
      count on the data stack (standard Forth strings are g-strings)

--
me

Date Sujet#  Auteur
8 Jan 25 * "Back & Forth" - Local variables39Hans Bezemer
8 Jan 25 +- Re: "Back & Forth" - Local variables1dxf
8 Jan 25 `* Re: "Back & Forth" - Local variables37albert
8 Jan 25  +* Re: "Back & Forth" - Local variables21Hans Bezemer
8 Jan 25  i`* Re: "Back & Forth" - Local variables20albert
8 Jan 25  i +* Re: "Back & Forth" - Local variables2mhx
9 Jan 25  i i`- Re: "Back & Forth" - Local variables1albert
11 Mar 25  i `* Re: "Back & Forth" - Local variables17dxf
11 Mar 25  i  +- Re: "Back & Forth" - Local variables1dxf
11 Mar 25  i  +* Re: "Back & Forth" - Local variables4Hans Bezemer
12 Mar 25  i  i`* Re: "Back & Forth" - Local variables3dxf
12 Mar 25  i  i +- Re: "Back & Forth" - Local variables1albert
13 Mar 25  i  i `- Re: "Back & Forth" - Local variables1dxf
12 Mar 25  i  `* Re: "Back & Forth" - Local variables11dxf
13 Mar 25  i   `* Re: "Back & Forth" - Local variables10sjack
14 Mar 25  i    `* Re: "Back & Forth" - Local variables9dxf
14 Mar 25  i     +* Re: "Back & Forth" - Local variables2sjack
14 Mar 25  i     i`- Re: "Back & Forth" - Local variables1sjack
16 Mar 25  i     `* Re: "Back & Forth" - Local variables6Hans Bezemer
16 Mar 25  i      `* Re: "Back & Forth" - Local variables5sjack
16 Mar 25  i       +- Re: "Back & Forth" - Local variables1sjack
17 Mar 25  i       +- Re: "Back & Forth" - Local variables1sjack
17 Mar 25  i       `* Re: "Back & Forth" - Local variables2sjack
18 Mar 25  i        `- Re: "Back & Forth" - Local variables1dxf
8 Jan 25  +* Re: "Back & Forth" - Local variables13Hans Bezemer
8 Jan 25  i`* Re: "Back & Forth" - Local variables12dxf
9 Jan 25  i `* Re: "Back & Forth" - Local variables11dxf
9 Jan 25  i  +* Re: "Back & Forth" - Local variables9albert
9 Jan 25  i  i+* Re: "Back & Forth" - Local variables7dxf
9 Jan 25  i  ii`* Re: "Back & Forth" - Local variables6Hans Bezemer
10 Jan 25  i  ii +* Re: "Back & Forth" - Local variables4dxf
10 Jan 25  i  ii i+- Re: "Back & Forth" - Local variables1Hans Bezemer
10 Jan 25  i  ii i`* Re: "Back & Forth" - Local variables2sjack
10 Jan 25  i  ii i `- Re: "Back & Forth" - Local variables1dxf
10 Jan 25  i  ii `- Re: "Back & Forth" - Local variables1albert
9 Jan 25  i  i`- xts and return addresses (was: "Back & Forth" - Local variables)1Anton Ertl
9 Jan 25  i  `- Re: "Back & Forth" - Local variables1sjack
10 Jan 25  `* Re: "Back & Forth" - Local variables2albert
10 Jan 25   `- Re: "Back & Forth" - Local variables1Hans Bezemer

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal