From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA10304 for caml-redistribution@pauillac.inria.fr; Mon, 8 Mar 1999 09:01:43 +0100 (MET) Resent-Message-Id: <199903080801.JAA10304@pauillac.inria.fr> 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 CAA25997 for ; Sat, 6 Mar 1999 02:46:20 +0100 (MET) Received: from mail13.svr.pol.co.uk (mail13.svr.pol.co.uk [195.92.193.24]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id CAA07279 for ; Sat, 6 Mar 1999 02:46:17 +0100 (MET) Received: from modem-56.nabumatone.dialup.pol.co.uk ([62.136.81.56] helo=toy.william.bogus) by mail13.svr.pol.co.uk with esmtp (Exim 2.12 #1) id 10J6AS-000238-00 for caml-list@inria.fr; Sat, 6 Mar 1999 01:46:17 +0000 Received: (from williamc@localhost) by toy.william.bogus (8.8.7/8.8.7) id BAA13133; Sat, 6 Mar 1999 01:38:18 GMT Date: Sat, 6 Mar 1999 01:38:18 GMT Message-Id: <199903060138.BAA13133@toy.william.bogus> From: William Chesters MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable To: caml-list@inria.fr Subject: ocaml 2.02 bug: curried printf X-Mailer: VM 6.34 under Emacs 20.2.1 Resent-From: weis@pauillac.inria.fr Resent-Date: Mon, 8 Mar 1999 09:01:43 +0100 Resent-To: caml-redistribution@pauillac.inria.fr This used to work in 2.01, but 2.02 outputs the wrong thing: Cette programme-ci a fonctionné correctement avec 2.01; avec 2.02 non= plus: =09open Printf =09open List =09open String =09let udt = [1; 2; 3] ;; =09print_endline (concat " " (map (sprintf "foo%d") udt)) ;; =09print_endline (concat " " (map (fun s -> sprintf "foo%d" s) udt)) ;;= =09iter (printf "foo%d") udt; print_newline () ;; =09iter (fun s -> printf "foo%d" s) udt; print_newline ()