A custom name for variables
Johannes Loher
johannes.loher at fg4f.de
Thu May 28 21:04:31 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?
Do you want to create a variable with the name read with readf?
If yes, that is not possible. Variable names need to be known at
compile time.
More information about the Digitalmars-d-learn
mailing list