November 19

Struct LuaVar seems to work for the most part, however, at certain point, the value seems to be reset to zero, or not being passed to the target function.

staticMap!(Unqual,Parameters!Func) params;
int stackCounter = 0;
try {
	foreach_reverse(ref param; params) {
		param = luaGetFromIndex!(typeof(param))(state, stackCounter);

My theory is, that if typeof(param) is LuaVar, I'm missing some extra steps I'm not doing. Other types of data seem to get through, or at least according to me poking around with debuggers.