Liste des Groupes | Revenir à cl forth |
zbigniew2011@gmail.com (LIT) writes:https://wiki.laptop.org/go/Forth_stack_operators"Pick and Roll are the generic operators which treat the data stack as>
an array. If you find you need to use them, you are probably doing it
wrong. Look for ways to refactor your code to be simpler instead."
What is the origin of that quote?
[..]There is no rule without an exception.
: 3DUP ( a b c -- a b c a b c ) 3 PICK 3 PICK 3 PICK ;
>
Seems clearer than some mess of ROT and return stack temporaries.
Les messages affichés proviennent d'usenet.