<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/8a448c527bac9969dd490c001a558855"
  from="Matthieu Dubuget &lt;matthieu.dubuget@m...&gt;"
  author="Matthieu Dubuget"
  date="2003-10-02T14:55:04"
  subject="Re: [Caml-list] Printf.sprintf and string_of_float"
  prev="2003/10/9a4a4be0cfe7c019ae4f42aaf4c47b30"
  next="2003/10/01f8985812016e242ddd8d73bc92ef59"
  prev-in-thread="2003/10/9a4a4be0cfe7c019ae4f42aaf4c47b30"
  prev-thread="2003/10/af98552ca0ffbadca25a0ba23600da76"
  next-thread="2003/10/f3d9c4c952226ae84420081ffb0d0799"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Printf.sprintf_and_string_of_float">
<msg 
  url="2003/10/9a4a4be0cfe7c019ae4f42aaf4c47b30"
  from="matthieu.dubuget@libertysurf.fr &lt;matthieu.dubuget@l...&gt;"
  author="matthieu.dubuget@libertysurf.fr"
  date="2003-10-02T14:16:12"
  subject="[Caml-list] Printf.sprintf_and_string_of_float">
<msg 
  url="2003/10/8a448c527bac9969dd490c001a558855"
  from="Matthieu Dubuget &lt;matthieu.dubuget@m...&gt;"
  author="Matthieu Dubuget"
  date="2003-10-02T14:55:04"
  subject="Re: [Caml-list] Printf.sprintf and string_of_float">
</msg>
</msg>
</thread>

<contents>
samsaga2 a écrit :
&gt; Why are you passing a unit to sprintf?
&gt; 
&gt; let unused_later = Printf.sprintf "string";;
&gt; 
&gt; let string_of_float (float_number : float) = Printf.sprintf "%f" 
&gt; float_number;
&gt; 
&gt; 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

</contents>

</message>

