Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Argument starter - The roots of all evil
Message
 
À
19/09/2004 04:55:14
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00938079
Message ID:
00944373
Vues:
34
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform