From: Matthieu Dubuget <matthieu.dubuget@metalscan.fr>
To: samsaga2 <samsaga2@stratos-ad.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Printf.sprintf and string_of_float
Date: Thu, 02 Oct 2003 16:53:24 +0200 [thread overview]
Message-ID: <3F7C3BE4.6070108@metalscan.fr> (raw)
In-Reply-To: <3F7C3696.5090608@stratos-ad.com>
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
prev parent reply other threads:[~2003-10-02 14:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-02 14:16 matthieu.dubuget
[not found] ` <3F7C3696.5090608@stratos-ad.com>
2003-10-02 14:53 ` Matthieu Dubuget [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F7C3BE4.6070108@metalscan.fr \
--to=matthieu.dubuget@metalscan.fr \
--cc=caml-list@inria.fr \
--cc=samsaga2@stratos-ad.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox