Anonymous user
Break OO privacy: Difference between revisions
→{{header|Perl 6}}
(extended ruby example (instance_variable_get)) |
|||
Line 833:
=={{header|Perl 6}}==
{{works with|
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 {
|