Forth · Lesson 9

The return stack: >r, r>, r@ and locals

Park values on the return stack with >r and r>, peek with r@, follow the balancing rule, and use Gforth's { } locals.

Lessons · Forth · Lesson 9 of 10

The return stack: >r, r>, r@ and locals

Park values on the return stack with >r and r>, peek with r@, follow the balancing rule, and use Gforth's { } locals.

Illustration for Forth
Park values on the return stack with >r and r>, peek with r@, follow the balancing rule, and use Gforth's { } locals.