Hello fellow AngelScripters,
now that we have 'auto' keyword support thanks to GGLucas ( http://www.gamedev.net/topic/652525-experimental-patches-named-arguments-and-auto-declarations/ ) maybe we could start thinking on how it'd be best to implement iteratable ranges/collection types in AS? For example, it'd be nice to be able to iterate in the following manner:
uint maxPlayers;
...
for( auto playerIndex : range<int>(0,maxPlayers-1) ) {
or even
array <Player @> players;
...
for( auto @Player : players ) {
I'm using C++11 syntax here but there might be other alternatives.
Any thoughts or suggestions?