Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Naming conventions for custom methods?
Message
 
 
À
18/11/2008 19:35:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01362229
Message ID:
01362726
Vues:
28
>>If you combine the declaration and the initialization into one statement, which is generally the way it's done, you get this ---
>>
>>private Button buttonOK = new Button();
>>
>>So yeah, the word "button" occurs a lot there. All three are needed, though. The first and third are often the same but need not be. The first is a data type and the third is the name of a class.
>
>I sort of understood that from just reading the code, though it still looks silly. If Button() returns a new button, then there shouldn't be any need to declare the type of the variable - compiler should know what class it will be, and the word "new" is pretty much redundant too, if button() is equivalent to createobject("button") - of course it's new, it can't return a reference to an old object even if we redid it in Turtle Logo. VB, I presume? I see these as programmer serving the compiler.
>
>BTW, I love the way UT's dashboard shows only a few characters of the message title, so I see only "Re: Naming conventi"; I routinely round it up in my mind... only to the end of the word. Naming convention... we should organize one. We'd just get together, start inventing names and generally have fun. Take a cheaper hotel, it doesn't matter how good the service is, good company does.

Interesting -- I see the whole thread title. What browser are you using?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform