find_name doesn't obey docs on unbound

Perry Wagle wagle at mac.com
Tue Feb 16 01:15:22 UTC 2010


find_name (ie, Parrot_find_name_op()) doesn't have a code path to throw an exception if the name is not bound.  It just returns NULL.

I was invited to repair that, but if I did, all the code that depending on the default behavior not being as documented (its supposed to throw an exception on unbound) would now barf.  I expect that to be a lot.

How should that be handled?

-- Perry

PS.  The code also says it doesn't crawl the scopes completely either.



More information about the parrot-dev mailing list