Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do nesting level
Message
De
17/09/2001 05:02:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/09/2001 03:46:52
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00557186
Message ID:
00557206
Vues:
14
>I have wrote a function to quick-sort' an array of objects, but when the array is a bit larger (~600), I receive an "Allowed DO nesting level exceeded." error message.
>
>I do not have any do-loop included in another do-loop, but maybe it still counted when a do-loop is included in my recursive function...
>
>Is it posible to remove this limitation, or must I rewrite my recursive function?
>
>Thanks,
>Jimi
Jimi,
Each recursive call counts as another level. You could possibly write your function w/o a recursion. OTOH for sorting an array think twice if you need it at all. asort() is already fast IMHO :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform