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:

    The very natural tendency to use terms derived from traditional grammar like verb, noun, adjective, passive voice, in describing languages outside of Indo-European is fraught with grave possibilities of misunderstanding.
    Benjamin Lee Whorf (1897–1934)

    I am always sorry when any language is lost, because languages are the pedigree of nations.
    Samuel Johnson (1709–1784)