Article View: comp.lang.modula2
Article #1551Re: Exceptions (Was: Why 3 button mice in Oberon?)
From: T. Kurt Bond
Date: Mon, 12 Oct 1992 18:22
Date: Mon, 12 Oct 1992 18:22
20 lines
1503 bytes
1503 bytes
In a previous article, smith@ctron.com (Larry Smith) says: [...] >Even so, if it were possible to get the effect I have in mind >_within_ the language, I'd agree with you, but you can't. Even if you call >a handler, it still going to return_to_the_function_that_detected_the_problem. >It cannot abort processing and roll the stack back to a known state, as an >exception can. In some languages an exception function need *not* return to the function that detected the problem, and *can* roll the stack back to a known state. (For example, Scheme can do this with call-with-current-continuation.) > If your file reader called a handler at EOF, that handler can >set booleans, close the file, do whatever, but it must still return to a >routine that _must_ return some sort of result. -- T.K. Bond
Technical Details
Message-ID:
<1bcfp9INNh98@usenet.INS.CWRU.Edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!usenet.ins.cwru.edu!cleveland.Freenet.Edu!ci123References:
<5400@balrog.ctron.com> <1992Sep15.223854.11203@sequent.com> <11145@minnie.informatik.uni-kiel.dbp.de> <BEVAN.92Sep29181450@tiger.cs.man.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!usenet.ins.cwru.edu!cleveland.Freenet.Edu!ci123 From: ci123@cleveland.Freenet.Edu (T. Kurt Bond) Newsgroups: comp.lang.modula2 Subject: Re: Exceptions (Was: Why 3 button mice in Oberon?) Date: 12 Oct 1992 18:22:33 GMT Organization: Case Western Reserve University, Cleveland, OH (USA) Lines: 20 Message-ID: <1bcfp9INNh98@usenet.INS.CWRU.Edu> References: <5400@balrog.ctron.com> <1992Sep15.223854.11203@sequent.com> <11145@minnie.informatik.uni-kiel.dbp.de> <BEVAN.92Sep29181450@tiger.cs.man.ac.uk> Reply-To: ci123@cleveland.Freenet.Edu (T. Kurt Bond) NNTP-Posting-Host: hela.ins.cwru.edu