Break OO privacy: Difference between revisions

(extended ruby example (instance_variable_get))
Line 833:
 
=={{header|Perl 6}}==
{{works with|rakudoRakudo|2012-01-272015.12}}
We may call into the MOP (Meta-Object Protocol) via the <tt>.^</tt> operator, and the MOP knows all about the object, including any supposedly private bits. We ask for its attributes, find the correct one, and get its value.
<lang perl6>class Foo {
Anonymous user