Wikipedia:

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 while debugging user interface code.

Examples

  1. When there 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.

<source lang="php"> $i = 1; while (true) {

 // We forget to increment $i.
 if ($i > 10) break;

} </source>

Notable Alderson loops

This term supposedly received its name from a programmer who had coded a modal message box in MSAccess 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.[1]

See also

References

  1. ^ Alderson Loop The Jargon File, Version 4.4.7. Accessed 21 May 2006. (Public Domain)

 
 
 

Join the WikiAnswers Q&A community. Post a question or answer questions about "Alderson loop" at WikiAnswers.

 

Copyrights:

Wikipedia. This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Alderson loop" Read more

Search for answers directly from your browser with the FREE Answers.com Toolbar!  
Click here to download now. 

Get Answers your way! Check out all our free tools and products.

On this page:   E-mail   print Print  Link  

 

Keep Reading

Mentioned In: