# New Ticket Created by  Patrick R. Michaud 
# Please include the string:  [perl #47894]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=47894 >


If we use the find_lex opcode on a symbol that hasn't been
defined in any outer scope, it generates an exception with

    Lexical '$foo' not found

For consistency with the other "symbol lookup" ops such as
get_global and hash lookups, the find_lex opcode should probably
return PMCNULL if the given symbol is not found.

Or, the find_lex opcode could throw an exception only when
PARROT_ERRORS_GLOBALS_FLAG (or a similar flag) is set.  But
the default behavior should probably match the behavior of
the other symbol lookup ops.

Thanks!

Pm

Reply via email to