G icon for Variable? why?

Discussion in 'Mac Programming' started by Darkroom, May 29, 2008.

  1. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #1
    clearly "V" is taken already for an instance variable, but what significance does "G" have to symbolize a (basic? raw? normal?) variable?
     

    Attached Files:

  2. crees! macrumors 68000

    crees!

    Joined:
    Jun 14, 2003
    Location:
    MD/VA/DC
  3. Darkroom thread starter Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #3
    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?

    i love your avatar btw... lol
     
  4. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #4
    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.
     
  5. Darkroom thread starter Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #5
    really? why are global variables dangerous? i mean, is there an example so i can understand? ... so the "G" would stand for "Global" then?
     

Share This Page