On Wed, Dec 31, 2008 at 08:06:48AM -0800, Ovid wrote:
Just stumbled across this, but I can't tell from S09 if this is a bug or
feature:
$ ./perl6 -e 'my %foo; if %fooa {}; say %foo.perl'
{a = undef}
It's a bug. In order to simplify the slicing implementation
Rakudo currently
Just stumbled across this, but I can't tell from S09 if this is a bug or
feature:
$ ./perl6 -e 'my %foo; if %fooa {}; say %foo.perl'
{a = undef}
I wasn't expecting auto-vivification there. The examples in S09 use HoH
instead of a flat hash:
But these bindings do autovivify:
On Wed, Dec 31, 2008 at 08:06:48AM -0800, Ovid wrote:
: Just stumbled across this, but I can't tell from S09 if this is a bug or
feature:
:
: $ ./perl6 -e 'my %foo; if %fooa {}; say %foo.perl'
: {a = undef}
Definitely bug. Rvalues aren't supposed to autovivify.
Larry