Liste des Groupes | Revenir à cl forth |
On 15/07/2024 20:37, Ruvim wrote:Or this way:>It can be done by using DEFER as a forward definition>>
RECURSIVE also allows you to tick the word in its own definition (not
possible with RECURSE), a feature that I actually have used;
I think, there should be a standard method to get the xt of the current definition (regardless whether it is a named definition, or nameless definition).
>
e.g.
defer foo
:noname ... ['] foo defer@ ... ; is foo
using DEFER@ gives the xt of the code, omittimg it gives the xt of the name.In this use case the named definition (created by "defer") is only auxiliary, its xt is not needed.
As DEFER can be used as a forward definition it can also be used for mutual recursionThis is possible but, awkward. Why else do some systems provide the words like "recursive" and "forward"?
Les messages affichés proviennent d'usenet.