From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id EAA26736; Sat, 4 Sep 2004 04:12:13 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id EAA27464 for ; Sat, 4 Sep 2004 04:12:10 +0200 (MET DST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i842C8gO005327 for ; Sat, 4 Sep 2004 04:12:09 +0200 Received: from [192.168.1.200] (ppp192-107.lns1.syd2.internode.on.net [203.122.192.107]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i842C34Y030343; Sat, 4 Sep 2004 11:42:03 +0930 (CST) Subject: Re: [Caml-list] Q: Correct locations for macro camlp4 extensions From: skaller Reply-To: skaller@users.sourceforge.net To: Yamagata Yoriyuki Cc: caml-list@pauillac.inria.fr In-Reply-To: <20040903.233704.59679919.yoriyuki@mbg.ocn.ne.jp> References: <1093258774.15255.267.camel@pelican.wigram> <20040903.233704.59679919.yoriyuki@mbg.ocn.ne.jp> Content-Type: text/plain Message-Id: <1094263922.3352.108.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 04 Sep 2004 12:12:02 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 41392478.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 camlp:01 sourceforge:01 2004:99 yamagata:01 yoriyuki:01 camlp:01 failwith:01 backtrace:01 failwith:01 9660:01 glebe:01 nsw:01 exits:01 snail:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, 2004-09-04 at 00:37, Yamagata Yoriyuki wrote: > Does camlp4 really report the correct line number? I ask because my > program exits after "failwith" call, but the backtrace prints the > location which does not correspond the call of failwith either in the > original source, or in the camlp4 pretty printed code. The problem may be in the p4 stream module, not camlp4 itself. There are obvious problems how to attribute a line number to generated code. In general, the job must be done by the generator script. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners