Created
October 8, 2010 16:44
Revisions
-
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ pmichaud@plum:~/rakudo$ cat xyz class XYZ { has $.v is rw; } sub arr($value) { say $value.list; XYZ.new(v => $value); } my $x = arr((4,5,6)); say $x.v.list; $x.v = (7,8,9); say $x.v.list; pmichaud@plum:~/rakudo$ ./perl6 xyz 456 4 5 6 789 pmichaud@plum:~/rakudo$