From: Andrew Backer Date: 2005-10-07T05:56:48+09:00 Subject: Re: Monitoring total memory usage? Here's why I wanted to resize an array : I am translating a function which has 3 output variables, two of which are arrays. It would be nice to pass in the array, and have the function resize it to the appropriate size, keeping the semantics of the function as close to the original as possible. Just like you standard array list. It is possible to grow an array (with <<), but not to just 'resize to 7', hence the function which just clears and stuffs with with << 0 . Turned out I just used mutliple return values ( arr1, arr2, err = myFunc( input ) ) insteand of the other way, and it's much nicer now. I don't have to worry about it, I just make a new array in the function and return it, so my routine has only one input variable. As for the fancy stuff done by Ara, I think I am staring to get it after I look at it. Not sure exactly what is going on, except that "a" is the parameter list, right? and... &b is the block passed... so it checks that A isn't negative. If it isn't, it forwards the call to the origional index function. I assume the particular syntax is just the way the __idx__ routine is defined in the first place. I just don't qite get the alias statement, and the exact mechanics of what it is covering up/exposing/ etc.. Thanks for all the help! - Andrew p.s. I should also mention this thread no longer has anything to do with the title. Also, that apparently 'memory usage' in this prof's mind means 'compiled executable size'. Shucks.