On Thu Dec 18 09:52:52 2008, masak wrote: > <masak> rakudo: class Base { has $.foo }; class Deriving is Base {}; > say Deriving.new( :foo(5) ).foo() > <p6eval> rakudo 34068: OUTPUT[You passed an initialization parameter > that does not have a matching attribute. [...] > <TimToady> and in general, it's not an error to pass unrecognized > initializers > <masak> TimToady: oh! > <TimToady> since each class will assume it was intended for a > different class > <masak> _two_ rakudobugs. :) > * masak files > <TimToady> and we want to allow scope for people splitting classes > without having to redo initializers > <TimToady> refactoring++
It works in recent rakudo: $ ../../parrot perl6.pbc -e 'class Base { has $.foo }; class Deriving is Base {}; say Deriving.new( :foo(5) ).foo()' 5 So ticket can be closed. -- Bacek