>Hi George,
>>The biggest problem I see with a non-recursive search is one on maintainance. A directory tree might have been a better example.
>
>>In that situation, as I stated elsewheres in this thread, a recursive search is this best and most maintainable solution.
>
>I agree (Assuming that you search into a tree where you've to walk through every node). Many non-recursive solutions have a significant (often buggy) overhead in achieving the same as the mechanism of preserving the variables on that call stack level. If you find yourself in doing just that, you have to wonder if a recursive soltuion would make sense.
>
Walter,
Exactly. For example, the non-recursive search I posted earlier could be done recursively. What's the point, however?
George
Ubi caritas et amor, deus ibi est