On Tuesday, 12 August 2014 at 06:09:52 UTC, Tofu Ninja wrote:
There might be a way to do it without Nullable but I couldn't
think of one...

Ok I actually thought of a much better way to do it with out
Nullable...

struct namedGlobalArray(string name, T)
{
        public template opDispatch(string var)
        {
                alias opDispatch = arrayGlob!(name, var, T);
        }

}

private template arrayGlob(string arrayName, string varName, T)
{
        T arrayGlob;
}

Reply via email to