Obtaining type and value of a variable named in another variable

Dennis dkorpel at gmail.com
Sat Oct 16 19:29:59 UTC 2021


On Saturday, 16 October 2021 at 19:28:04 UTC, DLearner wrote:
> How does one obtain from strVar:
> 1. The type of fooVar;

`typeof(mixin(strVar))`

> 2. The value of fooVar?

`mixin(strVar)`





More information about the Digitalmars-d-learn mailing list