2023-07-01 11:58:00 -04:00
|
|
|
import system'dynamic;
|
|
|
|
|
import extensions;
|
|
|
|
|
|
|
|
|
|
class TestClass
|
|
|
|
|
{
|
2023-10-02 18:11:16 -07:00
|
|
|
object variables;
|
2023-07-01 11:58:00 -04:00
|
|
|
|
|
|
|
|
constructor()
|
|
|
|
|
{
|
2023-10-02 18:11:16 -07:00
|
|
|
variables := new DynamicStruct()
|
2023-07-01 11:58:00 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function()
|
|
|
|
|
{
|
2024-03-06 22:25:12 -08:00
|
|
|
auto prop := new MessageName(console.write("Enter the variable name:").readLine());
|
2023-10-02 18:11:16 -07:00
|
|
|
(prop.setPropertyMessage())(variables,42);
|
2023-07-01 11:58:00 -04:00
|
|
|
|
2025-08-11 18:05:26 -07:00
|
|
|
Console.printLine(prop.toPrintable(),"=",(prop.getPropertyMessage())(variables)).readChar()
|
2023-07-01 11:58:00 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-01 16:33:20 -08:00
|
|
|
public Program = new TestClass();
|