I'm trying to debug what's wrong with my app and noticed that the wax library I'm using still uses setfenv which the Gideros docs say is deprecated. Before I start changing a bunch of code around, my question is, does this still work?
If you look at this
line of code you'll see it calls the method
waxClass which in turn calls setfenv(2, class._M). It passes 2 which means it's replacing the environment of caller which is the module being loaded. I'm not sure yet how to port this to use _ENV. If setfenv is still working then maybe I don't have to?
Would love an expert opinion, couldn't find anything searching Google. Thanks in advance.
Comments
Likes: MoKaLux
Likes: MoKaLux
FYI I'm trying to get Wax working again on both Lua 5.x and Luau so I can get my game back up and running. It depended heavily on Wax and it's been quite a journey. You can see my progress so far here and here and here.
Likes: MoKaLux, vitalitymobile, pie
Likes: MoKaLux, troysandal