Search: in
Sentinel value
Sentinel value Encyclopedia
  Tutorials     Encyclopedia     Dictionary     Directory  
Sentinel_value Email this to a friend      Sentinel_value

Sentinel value

In computer programming, a sentinel value (also referred to as a flag value, rogue value, or signal value) is a special value that is used to terminate a loop that processes structured (especially sequential) data. The value should be selected in such a way that it will not be confused with legal data values.

Below are some examples of common sentinel values and their uses:

Sentinel values are often used when searching for something of importance.[1]

In safe languages, most uses of sentinel values could be replaced with option types, which enforce explicit handling of the exceptional case.

See also

Notes

  1. McConnell, Steve. "Code Complete" Edition 2 Pg. 621 ISBN - 0-7356-1967-0





Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article



Related Links in Sentinel value

Search for Sentinel value in Tutorials
Search for Sentinel value in Encyclopedia
Search for Sentinel value in Dictionary
Search for Sentinel value in Open Directory
Search for Sentinel value in Store
Search for Sentinel value in PriceGig



Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor

Advertisement

Advertisement



Sentinel value
Sentinel_value top Sentinel_value

Home - Add TutorGig to Your Site - Disclaimer

©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement