I agree completely - the argument is always that you can't change something
so fundamental because you don't know how people've used it.

I applaud, mostly, MM's desire to remain as backwards compatible as
possible.  Sometimes it's just awkward tho'.  ;^)

Jim Davis

If they changed the behavior of arrays so that they are passed by
reference (a pointer) instead of by value, it likely would not affect
array-loops one iota... When you loop over the array, you only ever
reference the singular pointer to that array, i.e. arraylen(myarray)
and myarray[x] will reference the same array no matter how many times
you use them... The only time you'd get a new array is if you chose to
set a new variable name with it, i.e. myarray2 = myarray; myarray2[x]
-- then, and only then do you ever get separate array. So the only way
this could theoretically affect array loops is in a situation where a
2nd variable is set with an array and the 2nd array is then modified,
but that doesn't really affect the loop itself, only what is in, on or
around the loop.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to