Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!sdrc!gefrank From: gefrank@sdrc.UUCP (Frank Glandorf) Newsgroups: comp.software-eng Subject: Re: error handling techniques? Summary: Global vs. local error codes Message-ID: <256@sdrc.UUCP> Date: 20 Nov 90 19:06:02 GMT References: <1990Nov2.205831.23696@elroy.jpl.nasa.gov> <4e0c391a.20b6d@apollo.HP.COM> Organization: SDRC, Cincinnati Lines: 13 What's the opinion on global vs. local error codes. By global I mean a central list of codes in an include file. By local I mean a list of codes which is meaningful only in the context of the procedure which returns the code. A central list can be difficult to maintain but it is nice to have only one place to look for error codes. On the other hand local codes can be sequential and allow one to use "FORTRAN: computed gotos" :-) -Frank