Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WITH object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01671871
Message ID:
01672013
Vues:
65
> I do like the suggestion someone else had recently:
>
>
lo = some.long.object.reference
>lo.property = whatever
>lo.method()
>
>
>Making the shorter reference into a disposable variable is a nice trade off.

Yeah that's the approach that I usually take. Speaking of micro optimizations this is also slightly faster because variables require no lookups, while referenced multi-level variables do even if repeated in the calling context.

I literally NEVER use WITH if for no other reason that it adds an additional code nesting level.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform