On Sun Jul 20 10:33:13 2014, coke wrote:
> S02-names-vars/variables-and-packages.t has several TODO'd tests of
> this sort:
> 
> {
>   nok foo().defined, "get variable not yet declared using a sub (1)";
>   is foo(), 1, "get variable not yet declared using a sub (2)";
>   is foo(), 2, "get variable not yet declared using a sub (3)";
> 
> my $a;
> sub foo { $a++ }
> }
> 
> Where the expectation is that the first call to the foo will return an
> undefined value; in nom, it returns 0.

This behavior has been in place for years now, since before Christmas.

Tagging [@LARRY] to get a ruling on whether the test is any good.

-- 
Will "Coke" Coleda

Reply via email to