From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA22384 for caml-red; Mon, 30 Oct 2000 15:51:26 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA16292 for ; Mon, 30 Oct 2000 12:17:46 +0100 (MET) Received: from mrwall.kal.com (mrwall.kal.com [194.193.14.236]) by nez-perce.inria.fr (8.11.1/8.10.0) with SMTP id e9UBHjr09236; Mon, 30 Oct 2000 12:17:45 +0100 (MET) Received: from mrwall.kal.com [194.193.14.236] (HELO localhost) by mrwall.kal.com (AltaVista Mail V2.0J/2.0J BL25J listener) id 0000_0050_39fd_58f7_4dc0; Mon, 30 Oct 2000 11:18:15 +0000 Received: from somewhere by smtpxd Message-ID: <3145774E67D8D111BE6E00C0DF418B66339A40@nt.kal.com> From: Dave Berry To: Ohad Rodeh , Pierre Weis Cc: Mattias Waldau , caml-list@inria.fr Subject: RE: Where did the exception occur? Date: Mon, 30 Oct 2000 11:20:06 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1460.8) Content-Type: text/plain; charset="iso-8859-1" Sender: weis@pauillac.inria.fr People seem to be confusing "language" and "implementation". MLWorks (a now defunct implementation of SML) implemented "pop" semantics by "pushing" a handler onto the stack, which enabled debugging of the stack from the debugger. (Then again, MLWorks code couldn't be called from C, so Ohad's case couldn't arise). Other implementations of SML may well report the line number where the exception occurred: this is definitely a useful feature. Dave. -----Original Message----- From: Ohad Rodeh [mailto:orodeh@cs.huji.ac.il] Sent: Monday, October 30, 2000 7:57 To: Pierre Weis Cc: Mattias Waldau; caml-list@inria.fr Subject: Re: Where did the exception occur? List, I'd like to point out, that my application (LARGE OCaml project) is embedded in C code, so one cannot use the OCaml debugger to replay and find the exception. I'd be happy if a feature would be added to the language to point out which line in the code the exception came from (I understand this was added to SML ?). Ohad.