English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
printf - partial application bug
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-01-04 (21:01)
From: Charles Martin <martin@c...>
Subject: printf - partial application bug
I was surprised to discover that:

# List.iter2 (Printf.printf " (%d %d)") [1;2;3] [4;5;6];;
  (1 4)2 5)3 6)

It appears that a partially applied printf "forgets" everything up to the 
first format directive.