xxxxxxxxxx
import std.typecons : Tuple;
alias T = Tuple!(int delegate(int), "opIndex", int, "j");
unittest
{
int f(int i) { return i; }
T t = T(&f, 2);
t[0] = 1;
}