Loop iterator - example.txt

Anders F Björklund afb at algonet.se
Sun Apr 30 23:58:50 PDT 2006


Walter Bright wrote:

> A goto is also useful:
[...]
> 6) to, for instance, collect all error handling code in one spot in a 
> function

Apple uses this technique extensively in their "Carbon" programs (C).

They just hide it away with some macros they devised back in 1992...
http://www.mactech.com/articles/develop/issue_11/Parent_final.html

They are still present in /usr/include/AssertMacros.h, and in Carbon.
See http://developer.apple.com/carbon, and http://tinyurl.com/pk94g

And yes, other higher level languages would use exceptions instead. ;)

--anders



More information about the Digitalmars-d mailing list