Browse thread
[Caml-list] Printf.sprintf_and_string_of_float
-
matthieu.dubuget@libertysurf.fr
- Matthieu Dubuget
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Matthieu Dubuget <matthieu.dubuget@m...> |
| Subject: | Re: [Caml-list] Printf.sprintf and string_of_float |
samsaga2 a écrit : > Why are you passing a unit to sprintf? > > let unused_later = Printf.sprintf "string";; > > let string_of_float (float_number : float) = Printf.sprintf "%f" > float_number; > > This is ok for me You are right, this was a typo in the mail. The line really added is let unused_later = Printf.sprintf "string" ;; But this is just an example. I just have to use Printf module to crash my program. The following line added in the ml file used to generate my lib/dll is another example: let unused a = Printf.printf "%f" ;; Matthieu Dubuget ------------------- 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