Sometimes it's nice to not have to define a separate state variable, counter is the most often case that I've seen but there are others.
On Tue, Jun 29, 2021 at 6:02 AM George Cherevichenko < george.chereviche...@gmail.com> wrote: > The vocab stack-checker/values line 7 > > : <value> ( -- value ) \ <value> counter ; > > Why do Pestov use \ <value> (the name of a function) as a variable? > > The vocab stack-checker/recursive-state line 7 > > TUPLE: recursive-state quotations inline-words ; > : <recursive-state> ( -- state ) recursive-state new ; inline > <recursive-state> recursive-state set-global > > Why do Pestov use "recursive-state" (the name of a tuple) as a variable? > > George > > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk >
_______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk