Reflection/List properties: Difference between revisions
Content deleted Content added
m →{{header|Factor}}: spelling |
Walterpachl (talk | contribs) →{{header|REXX}}: add Pl/i equivalent |
||
Line 589:
=={{header|REXX}}==
===version 1===
(This REXX version is modeled after the '''PL/I''' entry.)
Line 607 ⟶ 608:
say 'variable abc.2 (length' length(abc.2)')=' abc.2</lang>
<br><br>
===version 2===
<lang rexx>/* REXX shows the "equivalent" to PL/I's PUT DATA for a simple variable */
/* put_data2('a.') to show all a.tail values isn't that easy :-) */
j=2
abc.j= -4.12
Say put_data('abc.2') /* Put Data(abc(2)) */
string=put_data('abc.2') /* Put string(string) Data(abc(2)) */
Say string
Exit
put_data:
Parse Arg variable
return(variable'='''value(variable)'''')</lang>
{{out}}
<pre>abc.2='-4.12'
abc.2='-4.12'</pre>
=={{header|Ruby}}==
|