find_name doesn't obey docs on unbound

Jonathan Leto jaleto at gmail.com
Tue Feb 16 17:43:56 UTC 2010


Howdy,

Can you provide a small snippet of code that reproduces this problem?
I can add it as a test case and it will have a much better chance of
being fixed and staying that way.

Duke



On Mon, Feb 15, 2010 at 5:15 PM, Perry Wagle <wagle at mac.com> wrote:
> 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.
>
> _______________________________________________
> http://lists.parrot.org/mailman/listinfo/parrot-dev
>



-- 
Jonathan "Duke" Leto
jonathan at leto.net
http://leto.net


More information about the parrot-dev mailing list