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 SAA03358; Thu, 23 Aug 2001 18:59:05 +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 SAA03113 for ; Thu, 23 Aug 2001 18:59:04 +0200 (MET DST) Received: from postoffice.mail.cornell.edu (postoffice.mail.cornell.edu [132.236.56.7]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f7NGx3H00655 for ; Thu, 23 Aug 2001 18:59:03 +0200 (MET DST) Received: from milhouse.cs.cornell.edu.cs.cornell.edu (dhcp99-208.cs.cornell.edu [128.84.99.208]) by postoffice.mail.cornell.edu (8.9.3/8.9.3) with ESMTP id MAA20708 for ; Thu, 23 Aug 2001 12:59:01 -0400 (EDT) To: caml-list@inria.fr Subject: Re: [Caml-list] assert + -pp = wrong line number and filename in assert message References: From: Paul Stodghill In-Reply-To: (Paul Stodghill's message of "23 Aug 2001 12:28:16 -0400") User-Agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.4 (Academic Rigor) Date: 23 Aug 2001 12:59:12 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > The "assert" construct generates an exception which contains the file > name and line number where the "assert" appears. > [ rest deleted ] I should point out that the compiler does seem to respect '# line' directives correctly when it comes to reporting syntax error. The problem only appears to be with the assert construct. milhouse$ cat bogus.ml this is totally bogus milhouse$ ocamlc -c -pp './preproc.sh' bogus.ml File "bogus.ml", line 1, characters 0-4: Unbound value this milhouse$ ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr