On Thu May 07 02:51:39 2015, FROGGS.de wrote:
> class Foo { has $.x is rw }; class Bar is Foo { }; my Foo $u .=
> new(:5x); say $u.x; $u = Bar.new(Foo{:12x});
> rakudo-moar a34d02: OUTPUT«5␤Default constructor for 'Bar' only takes
> named arguments␤  in block <unit> at /tmp/FrBrn8xOI_:1␤␤»
> 
> I guess this needs to translate to something else than Any in order to
> make it work:
> class Foo { }; say (Foo{:12x})
> rakudo-moar a34d02: OUTPUT«(Any)␤»

We actually weren't recognizing the auto-vivifying closure syntax at all. I've 
now reserved it, so we can implement this feature in a future version of the 
Perl 6 language. It's not being missed too hard, and I don't want to rush in a 
half-baked implementation of it for 6.Christmas.

Reply via email to