Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] positional specifiers in format strings
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Allsopp <dra-news@m...>
Subject: Re: [Caml-list] positional specifiers in format strings
>	    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