Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why '::'?
Message
 
À
25/04/2000 22:48:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00363407
Message ID:
00363482
Vues:
18
>I consider the use of "::" as the equivalent of a GOTO command - a sign of a questionable design. Are there any circumstances where it legitimately needs to be used?

Al,

Well VFP 3.0 for one, because there was no DoDefault() function. In VFP 5.0 the DoDefault had problems that caused many folks to use the scope resolution operator instead.

The only time I have any problem with the use of the :: operator is when a level of subclass is being bypassed, that is an indication of a problem with the class heirarchy.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform