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.

Reply via email to