Reflection/List properties: Difference between revisions

m
m (→‎{{header|ooRexx}}: a note on the type of ...)
Line 53:
=={{header|Elena}}==
Using a special property type - dto_prop.
ELENA 3.34 :
<lang elena>import system'routines.
import extensions.
 
class MyClass
{
Line 62:
literal dto_prop Y :: y.
}
 
programpublic =program
[
var o := MyClass::
{
@x := 2.
@y := "String".
}.
oMyClass __properties; forEach(:p)
[
console printLine("o.",p,"=",o~p get).
].
].</lang>
{{out}}
<pre>
Anonymous user