Skip to content

Commit 9ab09e5

Browse files
committed
Update classtut.pod
Rakudo now appears to support at least enough autovivification to remove this line. The program below does the right thing and the examples appear to work without the initialization. perl6 -e 'my %h; push(%h<k>, "v"); %h.say' That part of the code seems to date back to September 2012 or earlier.
1 parent 3c80575 commit 9ab09e5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/Language/classtut.pod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ significant improvement over Perl 5's approach to handling multiple inheritance.
448448
=begin code
449449
class GeekCook is Programmer is Cook {
450450
method new( *%params ) {
451-
%params<cookbooks> //= []; # remove once Rakudo fully supports autovivification
452451
push( %params<cookbooks>, "Cooking for Geeks" );
453452
return self.bless(|%params);
454453
}

0 commit comments

Comments
 (0)