Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Does setfenv still work or do I need to switch to _ENV? — Gideros Forum

Does setfenv still work or do I need to switch to _ENV?

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.


Likes: MoKaLux

+1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.