Anonymous user
Reflection/List properties: Difference between revisions
→{{header|REXX}}: added the REXX language.
(added Tcl) |
(→{{header|REXX}}: added the REXX language.) |
||
Line 389:
#[('__class__', <class '__main__.Child'>), ..., ('args', (0, 'I', 'two')), ('args_bleh', "(0, 'I', 'two') bleh"), ('doNothing', <bound method Child.doNothing of Child(chld, 0, 'I', 'two')>), ('doStuff', <bound method Child.doStuff of Child(chld, 0, 'I', 'two')>), ('name', 'chld'), ('name_bleh', 'chld bleh'), ('own', "chld's own"), ('own_bleh', "chld's own bleh"), ('reBleh', <_sre.SRE_Pattern object at 0x10067bd20>), ('reBleh_bleh', '<_sre.SRE_Pattern object at 0x10067bd20> bleh')]
</lang>
=={{header|REXX}}==
(This REXX version is modeled after the '''PL/I''' entry.)
The '''say''' instruction can display a value (it's contents) to
the console (terminal) as well as
it's length (the number of characters in its value).
Since ''everything'' in REXX is a character string, the ''type'' of the
variable (character) need not be explicitly expressed.
A simplistic example:
<lang rexx>j=2
abc.j= -4.12
say 'variable abc.2 (length' length(abc.2)')=' abc.2</lang>
<br><br>
=={{header|Ruby}}==
|