Obtaining type and value of a variable named in another variable

DLearner bmqazwsx123 at gmail.com
Sat Oct 16 19:28:04 UTC 2021


Suppose string variable strVar has value "fooVar".
fooVar is a valid variable name used elsewhere in the program.

How does one obtain from strVar:
1. The type of fooVar;
2. The value of fooVar?

Best regards

More information about the Digitalmars-d-learn mailing list