On Sat, Jul 01, 2006 at 05:10:59PM -0500, Chip Salzenberg wrote:
> Darn, find_global has collided with pdd21.
> 
> Currently find_global is prepared to accept a key or a namespace, and
> distinguishing namespaces from arrays is starting to get just a little
> too polymorphic for an opcode.

Agreed.  And find_global gets a bit overloaded anyway.

> 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!

Pm

Reply via email to