Reflection/List properties: Difference between revisions

m
(add Perl 6)
Line 143:
=={{header|Perl 6}}==
 
You can get a list of an object's attributes (instance variables) using <tt>.^attributes</tt>, which is part of the [https://docs.perl6.org/type/Metamodel$COLON$COLONClassHOW Meta Object Protocol]..<br>
Each is represented as an <tt>Attribute</tt> object that contains a bunch of info:
 
Anonymous user