find_name doesn't obey docs on unbound
wagle at mac.com
Tue Feb 16 20:27:44 UTC 2010
[Please do just poke at me until I make sense.]
I tried to get it to work, asked questions on IRC until I looked at the sourcescp and saw that the code didn't even try to generate the exception. So, I deleted my attempts.
Since then, I found several different ways to look through the namespaces, and thought picking on find_name wasn't even close to the real problem.
That said, I tried to get this to run, just now:
.sub main :main ### :pedantic_args
.param string argv :slurpy
$P0 = find_name "i_better_not_exist_or_this_thing_is_crazy"
if null $P0 goto wasnull
say "not null, must have existed somehow. inconceivable!"
say "was null. not good!"
say "generated exception. excellent!"
but the errorson command is unhappy for some reason. I don't know when I can get back to this.
On Feb 16, 2010, at 11:38 AM, Jonathan Leto wrote:
>> Hence, my judgement was that whoever went through and added all the (optional) error generation needed to write the tests, since they would know what had been decided about what all should do what when and where.
> *I* am offering to write tests. I want to know what you wrote and what
> it did. If it is undocumented, it needs tests.
> Jonathan "Duke" Leto
> jonathan at leto.net
More information about the parrot-dev