import std.stdio;

string getByName(string name)
{
        return "smth";
}

template getByName(string name)
{
        enum getByName = .getByName(name);
}


void main()
{
        writeln(getByName!("name"));
}

Thanks a lot! Very interesting. Do you see any reasoning why this happens?

Reply via email to