classes/scratchpad.pmc - Lexical Scrachpad


These are the vtable functions for the Scratchpad base class.

A ScratchPad PMC is a FixedPMCArray of OrderedHashes.

Methods ^

PMC *get_pmc_keyed(PMC *key)

Get a lexical variable. The key types are expected to match one of the following:


A lexical name.


A lexical position in the current scope.


A scope, and a lexical name.


A scope, and a lexical position in that scope.

void set_pmc_keyed(PMC *key, PMC *value)

Store a value as a lexical variable. The same key types that get_pmc_keyed() supports are supported here.

void delete_keyed(PMC *key)

Deletes the lexical variable for *key.