So while trying to create simple wrapper classes for some of OpenFL’s built-ins I’ve encountered a very strange issue that only affects Neko. Long story short, it seems that in-lining getter methods in a function call cause Neko to somehow lose its context within the called function.
obj1.fn(obj2.get_some_value()); // "this" gets corrupt within get_some_value()
I’ve created a repo to demonstrate the problem:
While there are a couple of workarounds, this seems to be a major gotcha for the Neko platform that I haven’t been able to find any other topics on. Would really appreciate it someone else could take a look at this, as I have already been avoiding property getter/setters in favor of traditional getter/setter methods so that it behaves more consistently across platforms