Re: How to tie



On Dec 31, 9:53 am, Lew <l...@xxxxxxxxxxxxx> wrote:
Abble wrote:
Thanks, Lew, but I'd like if possible to not have to wrap my array.

Why not?


Because I have about 60,000 lines of old code from C, C++, and FORTRAN
with array references like:

D[i] = A[ i ] + B[i] + C[ i ]; // use A B c

I think to objectize these the lines would look like:


D.setval( i, A.getval( i ) + B.getval( i ) + C.getval( i ) ); // use
A B c

So the goal is to do whatever it takes so we can keep the natural
array notations and legibility of the expressions( which can get very
long), AND speed would be nice, as the native code C, C++ and FORTRAN
codes are already not as fast as one might like.

.