On Wed Jan 07 09:16:32 2009, cspencer wrote: > > class Foo { > method list { > say "bar" > } > }; > > my $f = Foo.new; > $f.list > > will produce the following error in Rakudo: > > too few arguments passed (0) - 1 params expected > current instr.: 'parrot;Foo;list' pc 187 (EVAL_13:91) > ...
Now fixed as of r35418: $ cat x class Foo { method list { say "bar"; } } my $f = Foo.new; $f.list; $ ./parrot perl6.pbc x bar $ Note however, that the 'list' method is the one that gets called by various operators to obtain the list representation of an Object, so overriding it in this fashion might produce some bizarre results. Assigning to moritz for spectest update. Thanks! Pm