Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
clearly "V" is taken already for an instance variable, but what significance does "G" have to symbolize a (basic? raw? normal?) variable?
 

Attachments

  • Picture 1.png
    Picture 1.png
    22.2 KB · Views: 196

ScoobyMcDoo

macrumors 65816
Nov 26, 2007
1,188
37
Austin, TX
humm... Global? can these G variables be inherited automatically throughout all classes if they are only defined once without being imported from their original class?

Well, inherited is not the right word - that has a very specific meaning in OOP, and this is not it. Global variables are available to any code linked in. Very convenient maybe, but also very dangerous.
 

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
Well, inherited is not the right word - that has a very specific meaning in OOP, and this is not it. Global variables are available to any code linked in. Very convenient maybe, but also very dangerous.

really? why are global variables dangerous? i mean, is there an example so i can understand? ... so the "G" would stand for "Global" then?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.