A custom name for variables
Liu
liiudk at gmail.com
Fri May 29 19:42:49 UTC 2020
On Thursday, 28 May 2020 at 20:26:55 UTC, Quantium wrote:
> I need to create a variable with custom name, like this
> import std;
> void main()
> {
> string name;
> readf(" %s", &name);
> // some code that generates a variable of type integer and
> value 0
> }
> Could you help me with that?
This is not possible You would need a scripting language in order
to do that. What are you trying to do? if your explain better, we
may try came up with a better solution
More information about the Digitalmars-d-learn
mailing list