Patrick R. Michaud wrote:

you change to

    $P99 = get_namespace key_or_array
    $P0 = $P99['foo']

which also incidentally encourages(!) compilers to cache namespace pointers.

Ooh.  I like it very much!

Okay, to flesh this out as a viable alternative, Chip/Patrick we need:

a) a standard pattern for compiler writers to follow to cache namespace PMCs (various compilers may vary the pattern, but we need one straightforward base example)

b) a way to access a symbol in the currently selected namespace without retrieving the namespace by its literal name (this may work out to be part of the more general caching strategy)

Allison

Reply via email to