Issue with variable barrier between Lua and D
See test4 for the issue.
Long story short: struct LuaVar breaks communication between the D and Lua sides of things. This struct supposed to take care of tables, ambiguous types, and return values from Lua functions, however the very moment it's involved, nothing works. Using the limited D debugging capabilities of VS2022 shows the variable is either being fetched in the wrong order, or a memory leakage caused some unwanted value change thus setting the type to nil. However, one needs a better debugging of the whole situation, which would be only capable with a better debugger, but under Windows my choices are limited to VS (a bit broken), WinDBG (ignores symbols), and x64dbg (ignores symbols + doesn't know what to do with data structures), most debugging tutorials are about circumventing copyright protections, or "our lord and savior, the Linux shell scripts" (I NEED TO DEVELOP ON WINDOWS AS IT'S THE PRIMARY TARGET FOR GAMES!!!).