From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA24601 for caml-redistribution; Mon, 22 Nov 1999 18:33:33 +0100 (MET) 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 SAA18855 for ; Mon, 22 Nov 1999 18:25:08 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.8.7/8.8.7) with ESMTP id SAA20558; Mon, 22 Nov 1999 18:24:57 +0100 (MET) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA27015; Mon, 22 Nov 1999 18:24:57 +0100 (MET) From: Pierre Weis Message-Id: <199911221724.SAA27015@pauillac.inria.fr> Subject: Re: Format.printf broken To: matias@k-bell.com Date: Mon, 22 Nov 1999 18:24:57 +0100 (MET) Cc: caml-list@inria.fr In-Reply-To: <383839C9.61A4136E@k-bell.com> from "=?iso-8859-1?Q?Mat=EDas?= Giovannini" at Nov 21, 99 03:28:25 pm X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: weis > Straight from an example in Format.mli: > > # Format.printf "@\[%s@ %d@\]" "x =" 1 ;; > Uncaught exception: Invalid_argument("fprintf: unknown format \\") > > OCaml 2.03/Mac1.0a6 > > Regards, > Matías There is no bug here, but a slight misunderstanding of the status of .mli files wrt the documentation. The documentation for the Caml modules M is not the verbatim m.mli file, that is only the {\em source} of the documentation. In the documentation extracted from format.mli, the example reads: printf "@[%s@ %d@]" "x =" 1;; and works perfectly. Best regards, Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://cristal.inria.fr/~weis/