Xref: utzoo comp.lang.pascal:5277 comp.lang.fortran:4608 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!corton!mirsa!uranie.inria.fr!maman From: maman@uranie.inria.fr (Nathan Maman) Newsgroups: comp.lang.pascal,comp.lang.fortran Subject: Re: Gotos are okay, but what about COME-FROM's?? Message-ID: <9904@mirsa.inria.fr> Date: 29 Jan 91 15:54:44 GMT References: <1991Jan24.112445.3829@kcbbs> <1991Jan25.175604.34@csc.canterbury.ac.nz> <1991Jan25.231348.1469@dragon.wpd.sgi.com> Sender: news@mirsa.inria.fr Reply-To: maman@cosinus.inria.fr Followup-To: comp.lang.pascal Organization: INRIA Sophia Antipolis Lines: 33 Nntp-Posting-Host: uranie.inria.fr I don't know exactly how these COMEFROM's worked, but perhaps they could be used in Exceptions|Errors|Signals treatment(s). Example: Sub s1 statements return entry-point s1_some_signal treatment you should be able here to a) return to calculation in s1 b) return to calling sub c) exit from program with some message end s1 Sub signal_handler if COME-FROM s1 then go to s1_some_signal end if return (or whatever: stop, ...) end What do you think, am I wrong ? -- Nat. +--------------------------------------------------------------------------+ | Address: M. Nathan MAMAN, INRIA Sophia-Antipolis, 06560 Valbonne, FRANCE | | E-mail: maman@mirsa.inria.fr, Phone: 33-93.65.77.95, FAX: 33-93.65.78.58 | +--------------------------------------------------------------------------+