Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.