MattTuttle/HaxePunk — pull request #30 by andyli (2012-08-31 15:34:04+00:00)
Title: API improvement and for loop opt.

### API improvement

Those methods that accept an Array as output are now type-parameterized, so that one can write:
```
var targets:Array = [];
HXP.world.getType(Target.TYPE, targets);
```
instead of
```
var entities = [];
HXP.world.getType(Target.TYPE, entities);
var targets:Array = cast entities;
```

### for loop optimization

In Haxe, one doesn't need to declare the loop variable. And actually the code used in HaxePunk:
```
var m:Mask;
for (m in masks) add(m);
```
...the m in first line is different from the m in second line because of the scope.

You can check with the output cpp source.