From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 9EA45BC6C for ; Thu, 24 May 2007 15:28:36 +0200 (CEST) Received: from orion.metastack.com (no-dns-yet.demon.co.uk [80.177.38.218] (may be forged)) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4ODSZll025130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 24 May 2007 15:28:36 +0200 Received: from treble (cpc2-cmbg6-0-0-cust535.cmbg.cable.ntl.com [81.107.34.24]) (authenticated bits=0) by orion.metastack.com (8.13.4/8.13.3) with ESMTP id l4ODQDNW017296 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Thu, 24 May 2007 14:26:14 +0100 From: "David Allsopp" To: References: <20070524131457.916E9BC77@yquem.inria.fr> Subject: Re: [Caml-list] positional specifiers in format strings Date: Thu, 24 May 2007 14:28:32 +0100 Organization: MetaStack Solutions Ltd. Message-ID: <000901c79e07$6d375150$6a7ba8c0@treble> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AceeBUhlzYFNQkH+Q5uned4D0r0owAAAVTYg In-Reply-To: <20070524131457.916E9BC77@yquem.inria.fr> X-Miltered: at concorde with ID 46559303.006 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; printf:01 printf:01 bug:01 char:01 char:01 caml-list:01 strings:01 caml:02 caml:02 parameter:02 objective:02 string:02 string:02 inria:06 sadly:10 > Objective Caml version 3.10.0 > > # Printf.printf "%5$f";; > Bad conversion %$, at char number 0 in format string ``%5$f'' > # Printf.printf "%.*3$f";; > Bad conversion %3, at char number 0 in format string ``%.*3$f'' Positional specifiers aren't new and, sadly, neither's the bug - http://caml.inria.fr/mantis/view.php?id=4204 I just love having to pass the same parameter 5 times to printf just because it's used in 5 different places in the format string!! David