x4fx77x4f
x4fx77x4f
I wasn't able to successfully inject glua-steal (1.9, latest commit, `bdd414e`) on Ubuntu 20.04.1 LTS and 64-bit Garry's Mod with gdb, linux-inject, or LD_PRELOAD. I get a segmentation fault every...
I have been trying for weeks, but just now it magically started working again. I injected by manually typing commands into gdb, and now it works just fine, even when...
Nothing, but it does make some things easier. `loadstring` currently behaves incorrectly, which makes me uncomfortable using it without also adding support for the possibility of a breaking change, or...
> I don't see why you'd need another function for cleanliness reasons. Having to just know that `loadstring` doesn't do what it does in vanilla Lua is a footgun. Breaking...
I could alias `loadstring` to `load`. I just didn't like the idea of breaking compatibility. I could also remove `compileString` if you think it's redundant.
GMod uses LuaJIT, which backports a lot of things from Lua 5.2 when they don't break compatibility. [I linked to a list of deviations from Lua 5.1 in LuaJIT earlier.](https://luajit.org/extensions.html)
That is intentional and mentioned in the OP. It is to make sure that code expecting `load` or `loadstring` to have a third parameter will work as is, since like...
`require` does not take a path in vanilla Lua, and trying to use a path anyway does not work in vanilla Lua.
Vanilla `require` also uses periods instead of slashes as directory separators, and does a variety of things with `package`. IMO, StarfallEx's `require` is not at all like vanilla `require`.
Just because you can doesn't mean you're supposed to. I could change the documentation to something like "The path must be an actual path, including the file extension and using...