Re: Structure vs purism ?

Zygo Blaxell (uixjjji1@umail.furryterror.org)
21 Jan 1999 23:50:23 -0500


In article <788cc7$rft$1@palladium.transmeta.com>,
H. Peter Anvin <hpa@transmeta.com> wrote:
>One thing: "goto" is really the only sane way in C to implement a
>so-called posit/admit structure, which *is* recognized by structural
>programming -- you assume that it is going to be OK, but need to do
>cleanup if you bail. Sometimes an early return or "return do_cleanup();"
>is acceptable, but if the function needs to do cleanup using local
>variables, then there is no real choice.

Or you could use C++, and do it with exceptions and destructors.

[ Whew. If I was subscribed to this mailing list using my real email
address, I would be getting flamed to a _crisp_ right now. ;-) ]

-- 
Zygo Blaxell                         (with a name like that, who needs a nick?)
Linux Engineer                          (my favorite official job title so far)
Corel Corporation      (whose opinions sometimes differ from those shown above)
zygob@corel.ca                                  (also zblaxell@furryterror.org)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/