Automatic registration of D class. (not global)
// Point is a class that hold x, y coordinates auto ctx = new DukContext(); ctx.register!Point.setGlobal("Point"); // equivalent to ctx.registerGlobal!Point assert(ctx.evalString!string(r"new Point(1, 2).toString()") == "(1, 2)");
See Implementation
Automatic registration of D class. (not global)