Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Microsoft launches new open source codeplex foundation
Message
From
30/09/2009 08:20:55
 
 
To
30/09/2009 08:10:08
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01424841
Message ID:
01426817
Views:
53
Well, I don't know why it would consume energy

It's a convention that makes it easier to understand


>But this is not mandatory, its just the a convention. I would not code this way. It just consumes energy that could be used better otherwise. Except for code obfuscation, where it sounds pretty nice.
>
>
>
>>Or will you explain that you use this feature in the sense that you distinct names by there case?
>>
>>
>>That is done in C#. Class properties/Methods conventionally start with an upper case char. Parameters to a function and variables conventionally start with a lower case char
>>
>>
>>Example with a constructor (CreateObject in foxpro)
>>
>>
>>public class AClass
>>{
>>    static void Main()
>>    {
>>         var pp =new MyClass("abc"); /// in foxpro pp = CreateObject('MyClass', 'abc')
>>    }
>>}
>>
>>public class MyClass
>>{ 
>>    protected string TheName ;
>>
>>    public MyClass(string theName)  // in foxpro this would be the Init() method
>>    {
>>        TheName = theName;  // or: this.TheName = theName;
>>    }
>>}
>>
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform