Open ze0nni opened 20 hours ago
I know nothing about lua but there's indeed some code that generates this for any anon.field = anon.field
case. From what I can tell, the _hx_funcToField
function is there to deal with situations where we're assigning to a function type at runtime. However, when everything is properly typed like in the case here, I don't see a reason why it would do that.
@jdonaldson Do you happen to remember why it was implemented like that?
I profiled my code and found this strange behavior.
haxe -lua main.lua -main Main.hx
Haxe
4.3.3