Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable Naming
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00315006
Message ID:
00315436
Views:
34
>>lcname is a local character
>>pcname will never exist in my program, but it would be a public character
>
>I think this notation is more standard
>
>l local
>p private
>g global
>t parameter

>I find that confusing. I would rather see
>lnDaysOfRain = Weather.DaysOfRain
>than
>DaysOfRain = Weather.DaysOfRain

One other point here: With contemporary coding, it's becoming more common to lose the 'l' for Local, since there aren't any Publics or Privates to distinguish in most code - if there are, you can use a prefix for them as you describe, and for parameters. But I discontinued the redundant Local 'l' a year ago or so, it makes the code a lot more pleasant, I think, without it. I see more of this all the time in reading published code...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform