« Return to Thread: New to group

Re: New to group

by Geert Bevin :: Rate this Message:

Reply to Author | View in Thread


Hi,

first, which version of RIFE/Continuations are you using?

Also, would you mind attaching the actual source code that you're  
using so that it can be run in a very easy fashion. If there is a  
problem, this drastically reduces the time to figure it out.

Thanks,

Geert

On 01 Nov 2007, at 22:29, bonehead wrote:

>
> 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

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: New to group

 
 
 
Google
rifers.org web