Global Variable - Other Languages

Other Languages

  • In Python and MATLAB a global variable can be declared anywhere with the global keyword.
  • Ruby's global variables are distinguished by a '$' sigil. A number of predefined globals exist, for instance $$ is the current process ID.

Read more about this topic:  Global Variable

Famous quotes containing the word languages:

    No doubt, to a man of sense, travel offers advantages. As many languages as he has, as many friends, as many arts and trades, so many times is he a man. A foreign country is a point of comparison, wherefrom to judge his own.
    Ralph Waldo Emerson (1803–1882)

    It is time for dead languages to be quiet.
    Natalie Clifford Barney (1876–1972)