Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why '::'?
Message
De
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:
00363421
Vues:
18
>>Hi
>>
>>I just wanted to know why place like West Wind and Flash
>>use the following;
>>
>>OBJECT::Method it indicate a method and not
>>OBJECT.Method?
>>
>>TIA
>>
>>Mal
>
>Mal,
>
>It is actually CLASS::Method that is being used. That is the scope resolution opreator which is used to refer to a method in a specific class. It should be used when creating code in a sbuclass and you desire to call the code in the superclass.

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?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform