Liste des Groupes | Revenir à cl forth |
: +> ( addr1 addr2 addr3 -- )>
rot @ rot @ + swap ! ;
>
Of course the above is just an illustration; I mean coding
such word directly in ML. It should be significantly
faster than going through stack usual way.
A set of three addresses on the stack is messy even before
one does anything with them.
Yep, but I meant the case of, for example:
var1 @ var2 @ + var3 !
The above isn't messy at all.
So IMHO by using such OOS (out-of-stack) operation - coded
directly in ML - we can replace the above by:
var1 var2 var3 +>
...
In case of slower ITC non-optimizing Forths - like
fig-Forth, as the most obvious example - the "boost"
may be noticeable.
I'll check that.
Les messages affichés proviennent d'usenet.