[perl #104980] natively typed attributes and BUILD methods don't mix

2017-09-21 Thread Christian Bartolomaeus via RT
On Thu, 21 Sep 2017 19:50:01 -0700, b...@abrij.org wrote: > > Current behavior (don't have a rakudo-j here): > > $ perl6-m -e 'class A { has str $.x; method BUILD(:$!x) { } }; say > A.new(:x).x' > foo > > If r-j now works too, we can move to TESTNEEDED. Yeah, looks good on rakudo-j, too: $ ./p

[perl #104980] natively typed attributes and BUILD methods don't mix

2017-09-21 Thread Brian S. Julin via RT
On Sun, 01 Mar 2015 12:29:14 -0800, barto...@gmx.de wrote: > As a status update: This currently fails with: > > $ perl6-m -e 'class A { has str $.x; method BUILD(:$!x) { } }; say > A.new(:x).x' > Cannot modify an immutable str > in method BUILD at -e:1 > in method BUILDALL at src/gen/m-CORE.se

[perl #104980] natively typed attributes and BUILD methods don't mix

2015-03-01 Thread Christian Bartolomaeus via RT
As a status update: This currently fails with: $ perl6-m -e 'class A { has str $.x; method BUILD(:$!x) { } }; say A.new(:x).x' Cannot modify an immutable str in method BUILD at -e:1 in method BUILDALL at src/gen/m-CORE.setting:983 in method bless at src/gen/m-CORE.setting:966 in method ne

[perl #104980] natively typed attributes and BUILD methods don't mix

2011-11-30 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #104980] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=104980 > 14:44 < moritz> nom: class A { has str $.x; method BUILD(:$!x) { } }; say A.new(: