Liste des Groupes | Revenir à cl forth |
...
Nice test - I bet it wouldn't be too hard to implement at least part of the Forth-200x implementation ;-)
Sometin' like define {:
1. Parse a word;
2. If not :} then create a (local);
3. Repeat.
Ok, this is horrible code, it needs the VALUES in reverse, but it works:
: :} ;
: {: begin ' dup ['] :} <> while >body postpone literal postpone (local) repeat drop ; immediate
: test {: b a :} a b / ;
Les messages affichés proviennent d'usenet.