Quote:
Originally Posted by Inverness
I don't think I understood quite what you meant at the time  , so I forgot.
But I would still like it if you documented this stuff
Was wondering why it is only working with arrays and not strings or numbers? I've just realized how this could be very useful but don't want to wrap data in an array.
And after thinking about it a bit more I'm wondering if you could let it be used anywhere even outside of functions?
|
I doubt it only works with arrays, but arrays are a good example to show how efficient this can be. Instead of copying the whole (sometimes big) array, you can point to it and dont waste such huge amounts of memory
and you can change it without the need to send the changes back.