Haxe's Array Type

http://try.haxe.org/#Df6D7

The js source is weird, an abstract would generate less code but won’t exist at runtime, so I guess it depends on the use case.

Hmm seems I misunderstood ArrayAccess usage, I don’t think you can modify the way it’s used as an array, http://try.haxe.org/#05a05, or if it is possible it’s not like an abstract.

I had tested for cpp but it seems there is problem in other targets. the get and set method does not work on Flash.