# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #69260] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=69260 >
<masak> rakudo: class A { has $!x; method foo() { say $!x } }; class B { has $!x = 42; }; my $b = B.new; $b.A::foo <p6eval> rakudo 836c8c: OUTPUT«42» <masak> bye-bye, encapsulation. <jnthn> masak: huh? You called a publicly visible method <moritz_> outch <jnthn> masak: How does it break encapsulation? <masak> jnthn: I managed to use the A class to print a private attribute of a B object. that's encapsulation breakage in my book. <jnthn> masak: oh, wait, I see what you mean <jnthn> masak: erm <masak> thought so. :) <jnthn> masak: rakudo bug. * masak submits <jnthn> masak: It should'a given you the $!x from A. <masak> aye.