Singleton variable

Singleton variable

In computer programming a singleton variable is a variable that is referred to only once after it has been declared.

Examples of where a variable might only be referenced once is as a dummy argument in a function call, or when its address is assigned to another variable which subsequently accesses its allocated storage.

This usage pattern sometimes occurs because a mistake has been made, with more than one reference being intended. Some compilers and lint-like tools flag occurrences of singleton variables.

ee also

Singleton pattern


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Singleton (Motif de conception) — Singleton (patron de conception) En génie logiciel, le singleton est un patron de conception (design pattern) dont l objet est de restreindre l instanciation d une classe à un seul objet (ou bien à quelques objets seulement). Il est utilisé… …   Wikipédia en Français

  • Singleton (motif de conception) — Singleton (patron de conception) En génie logiciel, le singleton est un patron de conception (design pattern) dont l objet est de restreindre l instanciation d une classe à un seul objet (ou bien à quelques objets seulement). Il est utilisé… …   Wikipédia en Français

  • Singleton (patron de conception) —  Pour l’article homonyme, voir Singleton.  En génie logiciel, le singleton est un patron de conception (design pattern) dont l objet est de restreindre l instanciation d une classe à un seul objet (ou bien à quelques objets seulement).… …   Wikipédia en Français

  • Singleton (Entwurfsmuster) — Das Singleton (auch Einzelstück genannt) ist ein in der Softwareentwicklung eingesetztes Entwurfsmuster und gehört zur Kategorie der Erzeugungsmuster (engl. Creational Patterns). Es verhindert, dass von einer Klasse mehr als ein Objekt erzeugt… …   Deutsch Wikipedia

  • Singleton — Para el término matemático, véase Conjunto unitario. El patrón de diseño singleton (instancia única) está diseñado para restringir la creación de objetos pertenecientes a una clase o el valor de un tipo a un único objeto. Su intención consiste en …   Wikipedia Español

  • Singleton — may refer to *Singleton (mathematics), a set with exactly one element in mathematics *Singleton pattern, a design pattern used in software engineering *Singleton bound, used in coding theory *Singleton field, used in conformal field… …   Wikipedia

  • Singleton (mathematiques) — Singleton (mathématiques) Pour les articles homonymes, voir Singleton. En mathématiques, un ensemble E est un singleton lorsqu il ne contient qu un seul élément a, et il s écrit alors : Sommaire …   Wikipédia en Français

  • Singleton Pattern — Das Singleton (auch Einzelstück genannt) ist ein in der Softwareentwicklung eingesetztes Entwurfsmuster und gehört zur Kategorie der Erzeugungsmuster (engl. Creational Patterns). Es verhindert, dass von einer Klasse mehr als ein Objekt erzeugt… …   Deutsch Wikipedia

  • Singleton (mathématiques) — Pour les articles homonymes, voir Singleton. En mathématiques, un ensemble E est un singleton lorsqu il ne contient qu un seul élément a, et il s écrit alors : Sommaire …   Wikipédia en Français

  • Variable régionalisée — La VR comme phénomène physique : topographie de la ville de Binche …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”