You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<masak> rakudo: class A { method new { self.bless(*) } }; class B is A
{ has $.c is rw; method new { my $obj = callsame; say $obj.WHAT;
$obj.c = 42; return $obj } }; say B.new.c
<p6eval> rakudo 188755: OUTPUT«B()Null PMC access in getprop() in
'&infix:<=>' at line 1 in 'B::new' [...]
* masak submits rakudobug
<masak> it says it's a B, but I suspect it ain't.
<jnthn> Hm. It should be...
<masak> the error occurs when trying to assign to $.c, which is B-specific.
<jnthn> yeah...
<jnthn> 00:11 < jnthn> Somebody should fix objects. :P
<masak> :)
<masak> rakudo: class A { method new { self.bless(*) } }; class B is A
{ has $.c is rw; method new { my $obj = callsame; say $obj.WHAT;
$obj.c = 42; return $obj } }; say B.new.c
<p6eval> rakudo 188755: OUTPUT«B()Null PMC access in getprop() in
'&infix:<=>' at line 1 in 'B::new' [...]
* masak submits rakudobug
<masak> it says it's a B, but I suspect it ain't.
<jnthn> Hm. It should be...
<masak> the error occurs when trying to assign to $.c, which is
B-specific.
<jnthn> yeah...
<jnthn> 00:11 < jnthn> Somebody should fix objects. :P
<masak> :)
Somebody did:
class A { method new { self.bless(*) } }; class B is A { has $.c is
rw; method new { my $obj = callsame; say $obj.WHAT; $obj.c = 42; return
$obj } }; say B.new.c
B()
42
Migrated from rt.perl.org#82814 (status was 'resolved')
Searchable as RT82814$
The text was updated successfully, but these errors were encountered: