Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!rit!cci632!jf From: jf@cci632.UUCP (Jens Fiederer) Newsgroups: comp.lang.c Subject: Re: Behaviour of setjmp/longjmp and registers Message-ID: <26109@cci632.UUCP> Date: 1 Feb 89 19:58:18 GMT References: <25@torsqnt.UUCP> <8867@bloom-beacon.MIT.EDU> <7222@polyslo.CalPoly.EDU> <8812@alice.UUCP> <9480@smoke.BRL.MIL> <3630@ingr.com> Reply-To: jf@ccird3.UUCP (Jens Fiederer) Organization: CCI, Communications Systems Division, Rochester, NY Lines: 13 In article <9480@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: > >I don't think I've even seen a case in which setjmp/longjmp was the best >way to design code, let alone essential. While I have never used setjmp/longjmp myself, I have never written a large interpreter (for example, a full blown LISP) in C. Writing a LISP interpreter in SAIL, I found a non-local goto facility very useful to help in error handling. My feeling is that setjmp/longjmp have their legitimate uses, be they ever so few. Jens