Luke Palmer <[EMAIL PROTECTED]> wrote:
> find_global throws an exception even if the variable in that entry is
> undef, which is just silly.   This patch fixes it to only throw an
> exception when it hasn't actually been store_global'd.

Thanks, applied.

> I personally think that it should never throw an exception -- that it
> should always just return undef if the variable wasn't defined.  OTOH,
> some languages like to know whether a variable exists.  I think a nice
> solution would be to give the program access to the stash PMC, and then
> they can do whatever they like to it.

Yep. We need that anyway. We can put the stash pointer into
interpreter->iglobals and retrieve it with the interpreter vtable
interface.

Lexicals should use OrderedHash IMHO, then they would get an iterator
interface for free.

> Luke

leo

Reply via email to