Singleton variable


programming
A variable which is only referred to once in a piece of code, probably because of a programming mistake. To be useful, a variable must be set and read from, in that order. If it is only referred to once then it cannot be both set and read.
There are various exceptions. C-like assignment operators, e.g. “x += y”, read and set x and return its new value (they are abbreviations for “x = x+y”, etc). A function argument may be passed only for the sake of uniformity or to support future enhancements. A good compiler or a syntax checker like lint should report singleton variables but also allow specific instances to be marked as deliberate by the programmer.
(1997-12-20)

Read Also:

  • Single-tongue

    verb 1. (music) to play (any nonlegato passage) on a wind instrument by obstructing and uncovering the air passage through the lips with the tongue Compare double-tongue, triple-tongue

  • Sinuate

    adjective, Also, sinuated 1. bent in and out; winding; sinuous. 2. Botany. having the margin strongly or distinctly wavy, as a leaf. verb (used without object), sinuated, sinuating. 3. to curve or wind in and out; creep in a winding path: a snake sinuating along the ground. adjective 1. Also sinuous. (of leaves) having a […]

  • Sinuation

    noun 1. a winding; sinuosity.

  • Sinuiju

    noun 1. a city in W North Korea, on the Yalu River.

  • Sinumbra-lamp

    or sinumbral lamp [si-nuhm-bruh] /sɪˈnʌm brə/ noun 1. an unshaded sperm-oil lamp consisting of a translucent glass globe supported on a pedestal: a form of astral lamp.


Disclaimer: Singleton variable definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.