Dan Sugalski <[EMAIL PROTECTED]> wrote:

>    find_global P1, ['global', 'namespace', 'hierarchy'], "thingname"

> That is, split the namespace path from the name of the thing, and
> make the namespace path a multidimensional key.

> Or I suppose we could just punt and toss the special global access
> entirely and make the global namespace a hash 'o hashes hanging off
> the interpreter and access it like any other variable,

What about:

  getinterp P2
  set P1, P2['global';'namespace';'hierarchy';'thingname']

That is get_pmc_keyed() on a ParrotInterpreter PMC with a multi-key,
straight-forward. The set_pmc_keyed() stores a global.

Constructing a multy-key by hand isn't that simple (or would need
hacking imcc) (and Key componenent separator is a semicolon).

leo

Reply via email to