Liste des Groupes | Revenir à cl forth |
Ruvim <ruvim.pinka@gmail.com> writes:Well, I still haven't convinced you, you haven't convinced me.On 2024-09-22 21:13, Anton Ertl wrote:
[...]>
: bar state @ ; immediate
>
Could you please formulate: how to programmatically perform the behavior that can be observed when the Forth text interpreter encounters the name of your word "bar" in interpretation state?No.The interpretation semantics of BAR are to push the contents of STATE>
on the data stack.
I think, we should use the black box model — specify what can be
observed. And according to what can be observed, the interpretation
semantics of this word are to push zero on the data stack.
: [execute] execute ; immediate
s" bar" find-name name>interpret ] [execute] [ . \ prints -1
Les messages affichés proviennent d'usenet.