in reply to Two recursive functions returning in unexpected order
Such problems in general are easy to resolve with extra printouts. In the beginning of every function insert a printout of "foo called" (possibly with its arguments) and in the end a printout of "foo returns" (possibly with what it returns). Then, run on a small example - this will sure clear things up for you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Two recursive functions returning in unexpected order
by Argel (Prior) on May 11, 2005 at 18:43 UTC |