caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] surprised by string_of_bool
Date: Wed, 28 May 2008 09:14:27 +0100	[thread overview]
Message-ID: <200805280914.28021.jon@ffconsultancy.com> (raw)
In-Reply-To: <71CA0AD3E2664A189B3B7DD8C603B1C0@countertenor>

On Wednesday 28 May 2008 09:02:52 David Allsopp wrote:
> > The "correct" strategy seems to be used for string_of_float infinity:
>
> Well, it's just that string_of_bool can only return two possible values
> where string_of_float must perform an allocation each time.

The current implementation of string_of_float happens to allocate in this case 
but that is not necessary. It could just as well special case these special 
values and return static strings.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e


      reply	other threads:[~2008-05-28  8:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-27 23:10 Nathan Mishra Linger
2008-05-28  8:02 ` [Caml-list] " David Allsopp
2008-05-28  8:14   ` Jon Harrop [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=200805280914.28021.jon@ffconsultancy.com \
    --to=jon@ffconsultancy.com \
    --cc=caml-list@yquem.inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).