Click here to Skip to main content
11,501,561 members (78,399 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

The goto-less goto!

, 28 Feb 2011 CPOL 1.7K 2
My favorite is a variant of alternative 2.{ ... DoInit(); status=DoAllActions(); DoCleanup(status); ...}int DoAllActions(){ if (condition1_fails) return status1; ... if (condition2_fails) return status2; ... if(conditionN_fails) ...
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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

Share

About the Author

Member 4694807

Germany Germany
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 28 Feb 2011
Article Copyright 2011 by Member 4694807
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid