Skip to content
Prev 78392 / 398502 Next

problem accumulating array within a function over loops

Jonathan Williams a ??crit :
a outside testf is a "global variable".
a inside testf is a "local variable", ie a variable local to testf().
They are not the same.

As far as I remember, to assign a global variable from inside a
function you have to use the <-- operator.

(By the way, for 2dim arrays, there is also matrix().)

hih
Vincent