Memory Management/local-global vars

Did some more testing. It looks like arrays are being passed by reference. So if you do this:

  1. array1=query_collection();
  2. array2 = manipulate_queryresult(array1);

then array2 and array1 will be identical, holding the same changes.

So if this is true, passing arrays of objects does not occupy more memory, nor does make it slower, since there is no copying done.