Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming conventions for custom methods?
Message
From
18/11/2008 19:35:46
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01362229
Message ID:
01362723
Views:
32
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform