Recently I am learning Haxe for Flash, and I have some ActionScript 3 experience.
I notice there is a delete
operation in AS3, Is there something like delete
in Haxe? Is the delete
about GC? Are there any tips for Haxe newbies about memory management?
Marcus already explained what the delete
operator does. For use in Haxe please refer to this page.
Thus the Haxe equivalent of delete foo.b
is untyped __delete__(foo, "b")
. In case you intend to use it a lot, I suggest you put that into a function ;)