Re: Recursion question?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Also of note on sequences/pointers is their
effect of large structure access, consider:


for i = 1 to 10 do
    setText( textbox[i], myseq[x][y][z][i] )
end for


now consider:

sequence ptr

ptr=myseq[x][y][z]
for i = 1 to 10 do
    setText( textbox[i], ptr[i] )
end for

myseq[x][y][z] is not copied.
ptr is simply assigned as a pointer to that
element, which is, of course a sequence in it's
own right.


now each time the loop executes it only looks up
ptr...[i]



Graeme.
----------------------------------------------------

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu