From 9ab09e568ad82ed9f397aa9349313905f9e41db8 Mon Sep 17 00:00:00 2001 From: ronaldxs Date: Fri, 4 Jul 2014 22:31:28 -0400 Subject: [PATCH] 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, "v"); %h.say' That part of the code seems to date back to September 2012 or earlier. --- lib/Language/classtut.pod | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Language/classtut.pod b/lib/Language/classtut.pod index 0ef5728f1..c405b390b 100644 --- a/lib/Language/classtut.pod +++ b/lib/Language/classtut.pod @@ -448,7 +448,6 @@ significant improvement over Perl 5's approach to handling multiple inheritance. =begin code class GeekCook is Programmer is Cook { method new( *%params ) { - %params //= []; # remove once Rakudo fully supports autovivification push( %params, "Cooking for Geeks" ); return self.bless(|%params); }