The actual janet object this refers to. Aliased to, so all functions that operate on Janet operate on JanetObject.
initJanet(); scope(exit) janet_deinit(); import std.stdio : writeln; writeln("Performing JanetObject test."); scope(success) writeln("Success."); JanetObject testObj = JanetObject(3); assert(testObj.as!int == 3); testObj = "foo"; assert(testObj.as!string == "foo"); testObj = true; assert(testObj.compatible!bool,"Object is not converted to bool correctly!"); assert(testObj.as!bool,"Object converted to bool is not truthy!");
A generic wrapper for a janet pointer. Can be assigned to and initialized like a standard struct. . For easier assurances, one can also use the various wrappers around stricter types available (TODO).