Hello,
Is it possible to return the result of a recursive loop to the handler that
called the loop, instead of to the previous instance of the handler itself ?
I am not sure the question is accurate, but you can check out what I mean
with this example-moviescript.
on startMovie
myList = [5,6,7]
Sure, you can do recursion.
However, if you want to pick up the result, you'll have to do it when you
call, as in:
myResult =createList(oldList, newList)
Then do whatever (add it to the other list, pass it back, etc.)
At 07:09 AM 11/27/02, Erik Phalet wrote:
Hello,
Is it possible to return
Hello,
Is it possible to return the result of a recursive loop to the handler that
called the loop, instead of to the previous instance of the handler itself ?
I am not sure the question is accurate, but you can check out what I mean
with this example-moviescript.
on startMovie
myList = [5,6,7]
THX for the quick reply, Tab !
Andreas, I am using recursion in a project where I use DOM-lingo to work a
bunch of XML stuff.
A recursive setup can simplify things there, and is sometimes (as far as I
see) the only solution.
sincerely,
Erik Phalet
Tel * +32-(0)2-751 45 29
GSM * 0473
Erik Phalet [EMAIL PROTECTED] wrote:
If I put a breakpoint on the line return propertyList, I see what is
happening, but how can I pass my return value through this stack ?
Hi Erik,
You're almost there:
on createList oldList, newList
if not ilk(newList,#list) then
newList = []
end if
THX for the quick reply, Tab !
Andreas, I am using recursion in a project where I use DOM-lingo to work a
bunch of XML stuff.
A recursive setup can simplify things there, and is sometimes (as far as I
see) the only solution.
sincerely,
Erik Phalet
OK, I guess you're right. It doesn't make