Hi,
I was trying to use the rife continuations package to develop a simple
java example and came across a small problem.
I was trying to use a continuation to code a simple recursiveTower of
Hanoi program. Something akin to the wki example here
http://en.wikipedia.org/wiki/Tower_of_Hanoi.
I replaced the move with a pause() to break out of the recursion
hanoi(disks,...)
{
if(disks > 0)
{
hanoi(disks-1,...);
pause("Moving disk " ...);
hanoi(disks-1, ....);
}
}
When I do this it breaks out at the continuation, but upon reentry it
cauces a stack overflow problem. I am using an older version of the
rife continuaitons jar.
Any help would be greatly appreciated.
Cheers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-dev" group.
To post to this group, send email to
rife-dev@...
To unsubscribe from this group, send email to
rife-dev-unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/rife-dev?hl=en-~----------~----~----~----~------~----~------~--~---