Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

The goto-less goto!

, 25 Jan 2011 CPOL
Alternative 2 can be enhanced by returning a booleen value if we want to code something similar to the original example. A (early) return value of false would indicate a failure which could then be handle by checking the function result.if (!DoAllActions()){ ...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available Yes 25-Jan-11 19:14 Available Philippe Mori
1 No 25-Jan-11 19:13 Composing Philippe Mori

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Philippe Mori
Software Developer (Senior)
Canada Canada
Programmer at Maid LABS from 2003 (www.maidlabs.com)
 
Programmer-Analyst at Viasat Geo Technoligies from 1995 to 2002 (www.viasat-geo.com).
 
I have studied at École Polytechnique de Montréal in computer engineering.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141223.1 | Last Updated 25 Jan 2011
Article Copyright 2011 by Philippe Mori
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid