>>>>> "KH" == Kyle Hasselbacher <kyl...@gmail.com> writes:
KH> use v6; KH> my $s; # ! $x.defined KH> my @a; # @a.defined KH> That's the current Rakudo behavior. RT #64968 suggests that this is a KH> bug. In Perl 5, @a would not be defined until something was put into KH> it. Which should it be? I'd like to write a test for this. i am not even sure why defined is a method on aggregates. it is a known issue in p5 that you shouldn't test aggregates with defined since it tests whether anything has ever been allocated for it vs being empty. this comes from newbies seeing undef $foo and then some do undef @bar and then think defined @bar makes sense. so maybe there is a new reason to support defined on arrays and hashes but i think it should be disallowed. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Free Perl Training --- http://perlhunter.com/college.html --------- --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------