Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To fix or not to fix, that is the question
Message
De
11/07/2006 18:12:15
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
11/07/2006 10:22:50
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Divers
Thread ID:
01135306
Message ID:
01135547
Vues:
12
>>The whole array is passed in this case because the DO command passes parameters by reference (unless they are enclosed in the parenthesises).
>
>Yes. You're right. I just read that in the help. However, that's not obvious from the code.

The "not obvious" part is explained by the previous sentence... but then, if it's not obvious to you, then it's not obvious to many.

>There really was no need to pass the array at all. Other code buried 3 and 4 levels deep are accessing other arrays without passing them.

Now that IS bad. Kill it... I mean, refactor.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform