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.