Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] higher-order and format
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stephen Tse <stse@c...>
Subject: [Caml-list] higher-order and format


is this a bug?



        Objective Caml version 3.06

# let p = Format.sprintf "umm... %d";;
val p : int -> string = <fun>
# p 1;;
- : string = "umm... 1"
# p 1;;
- : string = "1"


# let q x = Format.sprintf "umm... %d" x;;
val q : int -> string = <fun>
# q 1;;
- : string = "umm... 1"
# q 1;;
- : string = "umm... 1"
# 


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners