Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursivity
Message
 
À
05/09/1997 19:14:25
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Divers
Thread ID:
00048680
Message ID:
00048813
Vues:
50
>>>hello, there is a way to write a recursive procedure in FoxPro 2.6 ?
>>>actually there is the limit of 32 nested DO, but i need a limit of 200.
>>>Someone could help me ?
>>Roberto,
>>
>>Yes there is a limit of 32 calling levels in Fox 2.6 and this is not able to be changed. However 32 levels of recursive routine can be used to trnasgress a directory tree that is 2^32 levels deep when coded correctly. That is 4,294,927,296 levles of dirs or bom explosion. Probably could handle the Bill of materials explosion for the space shuttle.
>>
>>Why do you need 200 levels of recursion? That gives 2^200 levels of stuff which is a number that I can't even imagine the size of.
>
>Can you be more specific, please? I don't see the relation between the number of recursion levels n and 2^n.
>
>Vlad
Vlad,

Sure, in theory each recursive level can make calls to the next level multiple times sequentially without eating calling levels because the previous down level call returns before the next down level call is issued. This renders 2 levels to the caller - callee relationship. Now we have 32 levels of caller to calle possibilities, therefore 2 (the caller-callee relation) ^ 32(the number of caller-callee relations allowed) possible levels of recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform