Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!dcdwest!sdcsvax!ucbvax!info-modula-2 From: Ralph.Hyre@C.CS.CMU.EDU (Ralph W. Hyre Jr.) Newsgroups: net.lang.mod2 Subject: Re: Exceptions in Modula-2 Message-ID: <12180441796.29.RALPHW@C.CS.CMU.EDU> Date: Mon, 3-Feb-86 11:45:08 EST Article-I.D.: C.12180441796.29.RALPHW Posted: Mon Feb 3 11:45:08 1986 Date-Received: Wed, 5-Feb-86 02:47:48 EST References: <3661@utah-cs.UUCP> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 13 Only major problem I have with the proposal is the use of strings rather than integers. I'd like to see integer error code numbers and string comments. This allows the programmer maximum flexibility in interpreting the error in the appropriate context. The CLU language has something similar (better, in my opinion) to this, exceptions have names and optional parameters, so that a routine to read from an open file can return the error not_possible("protection violation") or not_possible ("end_of_file"). With this proposal, the only thing that might need to be standardized are the exception numbers. - Ralph -------