Alderson loop

Alderson loop

In computer programming, an Alderson loop is a type of infinite loop, where there is an exit condition available, but inaccessible in the current implementation of the code. Typically this is created by a bug in user interface code.

Examples

*The term supposedly received its name from a programmer who had coded a modal message box in Microsoft Access with no OK or Cancel buttons, thereby disabling the entire program whenever the box came up. The message box had the proper code for dismissal and even was set up so that when the non-existent OK button was pressed the proper code would be called. [http://www.catb.org/~esr/jargon/html/A/Alderson-loop.html Alderson Loop] The Jargon File, Version 4.4.7. Accessed 21 May 2006. (Public Domain)]
*A typical example is a menu stating, “Select 1-3 or 9 to quit” and 9 is not allowed by the function that takes the selection from the user.
*An Alderson loop in PHP:$i = 1;while (true) { if ($i > 10) break; // We forgot to increment $i!}

ee also

* Goto
* Recursion

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Infinite loop — This article is about the programming term. For the street on which Apple Inc. s campus is located, see Infinite Loop (street). An infinite loop (also known as an endless loop) is a sequence of instructions in a computer program which loops… …   Wikipedia

  • Boucle infinie —  Pour l’article homonyme, voir Infinite Loop.  Une boucle infinie est, en programmation informatique, une boucle dont la condition de sortie n a pas été définie ou ne peut pas être satisfaite. En conséquence, la boucle ne peut se… …   Wikipédia en Français

  • Ditmar Award results — Main article: Ditmar Award The Ditmar Award is Australia s oldest and best known science fiction, fantasy and horror award, presented annually at the Australian NatCon since 1969. The historical nominations and results (listed in boldface) of the …   Wikipedia

  • Liste von Flüssen in den Vereinigten Staaten — Die folgende Liste zeigt eine Vielzahl von Flüssen in den Vereinigten Staaten und deren Territorien auf Inhaltsverzeichnis A B C D E F G H I J K L M N O P Q R S T …   Deutsch Wikipedia

  • Laura Ingalls (aviator) — Laura Houghtaling Ingalls (1901 – January 10, 1967) was a female pilot of the 1930s. BirthShe was born in Brooklyn, New York to Francis Abbott Ingalls I and Martha Houghtaling (1865 ????). Martha was the daughter of David Harrison Houghtaling of… …   Wikipedia

  • Megastructure — Not to be confused with Superstructure. For other uses, see Megastructure (disambiguation). The Great Wall of China is a megastructure. This picture was taken near Beijing in winter. A megastructure is a very large manmade object, though the… …   Wikipedia

  • Wormhole — In physics, a wormhole is a hypothetical topological feature of spacetime that is fundamentally a shortcut through space and time. Spacetime can be viewed as a 2D surface, and when folded over, a wormhole bridge can be formed. A wormhole has at… …   Wikipedia

  • Megascale engineering — (or macro engineering)[1] is a form of exploratory engineering concerned with the construction of structures on an enormous scale. Typically these structures are at least 1,000 kilometers in length in other words, at least 1 megameter, hence the… …   Wikipedia

  • Oklahoma State Highway 1 — OK 1 redirects here. OK 1 may also refer to Oklahoma s 1st congressional district. State Highway 1 …   Wikipedia

  • Attack Vector: Tactical — Cover Art Designer(s) Ken Burnside, Eric Finley, Tony Valle Publisher(s) Ad Astra Games Players …   Wikipedia

Share the article and excerpts

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