pfe-with-spy-ext
Prev? | pfe Forth Wordset List | ?Next

## Name

pfe-with-spy-ext ? WITH-SPY kernel extension

## Synopsis

`SPY-EXIT ( -- ) ?=>? (` | `)`; | ?

`"EXTENSIONS"`;
?

`;SPY ( -- ) ?=>? (` | `)`; | ?

`"EXTENSIONS"`;
?

`SPY_ON ( -- ) ?=>? (` | `)`; | ?

`"EXTENSIONS"`;
?

`SPY_OFF ( -- ) ?=>? (` | `)`; | ?

`"EXTENSIONS"`;
?

## Description

SPY-EXIT ( -- ) => "EXTENSIONS"

will unnest the current colon-word so it will actually return the word calling it. This can be found in the middle of a colon-sequence between `:` and `;`

;SPY ( -- ) => "EXTENSIONS"

compiles `((;))` which does `EXIT` the current colon-definition. It does then end compile-mode and returns to execute-mode. See `:` and `:NONAME`

SPY_ON ( -- ) => "EXTENSIONS"

change the runtime-code of `(NEST)` to call a special word that prints info to the screen whenever a colon word is entered. It will print the name and the current stack, and results in a kind of execution trace over `SPY' :`-colon nested words.

SPY_OFF ( -- ) => "EXTENSIONS"

disable `SPY_ON` nest-trace.

Prev? | Up | ?Next
pfe-useful-ext? | Home | ?pfe-your-ext