Jump to content

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 &nbsp; '''PL/I''' &nbsp; entry.)
 
 
The &nbsp; '''say''' &nbsp; instruction can display a value (it's contents) to
the console (terminal) as well as
it's length &nbsp; (the number of characters in its value).
 
Since &nbsp; ''everything'' &nbsp; in REXX is a character string, the &nbsp; ''type'' &nbsp; 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}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.