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 IAA16987; Mon, 28 Jan 2002 08:57:36 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 IAA18994 for ; Mon, 28 Jan 2002 08:57:35 +0100 (MET) Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g0S7vYj17345 for ; Mon, 28 Jan 2002 08:57:34 +0100 (MET) Received: from checkerlap.d6.com ([206.170.33.225]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GQN00H7923WDT@mta6.snfc21.pbi.net> for caml-list@inria.fr; Sun, 27 Jan 2002 23:57:33 -0800 (PST) Date: Sun, 27 Jan 2002 23:57:30 -0800 From: Chris Hecker Subject: Re: [Caml-list] Location in source code In-reply-to: <86665ndrym.fsf@speakeasy.org> X-Sender: checker@arda.pair.com To: caml-list@inria.fr (OCAML) Message-id: <4.3.2.7.2.20020127235459.0328a530@arda.pair.com> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >Mathieu> Printf.printf "I had an error in module %s at line %d" >Mathieu> __MODULE__ __LINE__ >Isn't this what assertions are for? Except that assertions don't do this either. :) As has been mentioned a bunch of times on the list, assertions in caml only record the file position, and even then they don't seem to handle crlf issues properly on win32. Anyway, this is a FAQ, search the archive. Chris ------------------- 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