enigma-dev/enigma-dev — pull request #856 by sorlok (2014-10-27 01:28:23+00:00)
Title: Massive var-array fix (CAUTION: affects all vars)

This branch contains a lot of changes to arrays-inside-variables. It brings arrays closer to GM feature parity.

1) Removed placement new; this will (hopefully) make the code more readable and make memory leaks easier to trace.
2) Implemented the various array length functions.
3) Added printing for arrays; if a var's value type is multi-dimensional, it is printed as a 2-D or 3-D array.
4) Fixed (x,y) storage for arrays; GM does it backwards.

Please be careful with this branch; I am fairly confident in it, but it *does* affect the "var" class extensively.