Reflection/List properties: Difference between revisions
→{{header|Raku}}: Fix some internal links
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
Thundergnat (talk | contribs) (→{{header|Raku}}: Fix some internal links) |
||
Line 825:
(formerly 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.
Each is represented as an <tt>Attribute</tt> object that contains a bunch of info:
Line 847:
</pre>
Public attributes (in this case, <tt>$.b</tt> and <tt>$.c</tt>) are really just attributes for which the compiler also auto-generates a method of the same name. See [[Reflection/List_methods#
=={{header|REXX}}==
|