23 lines
464 B
Plaintext
23 lines
464 B
Plaintext
import system'dynamic;
|
|
import extensions;
|
|
|
|
class TestClass
|
|
{
|
|
object variables;
|
|
|
|
constructor()
|
|
{
|
|
variables := new DynamicStruct()
|
|
}
|
|
|
|
function()
|
|
{
|
|
auto prop := new MessageName(console.write("Enter the variable name:").readLine());
|
|
(prop.setPropertyMessage())(variables,42);
|
|
|
|
console.printLine(prop.toPrintable(),"=",(prop.getPropertyMessage())(variables)).readChar()
|
|
}
|
|
}
|
|
|
|
public program = new TestClass();
|