caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "William D. Neumann" <wneumann@cs.unm.edu>
To: Oliver Bandel <oliver@first.in-berlin.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Arg-module: Float-Args also accept integer values
Date: Tue, 8 Aug 2006 15:19:15 -0600 (MDT)	[thread overview]
Message-ID: <Pine.LNX.4.62.0608081515510.11319@io.cs.unm.edu> (raw)
In-Reply-To: <20060808205748.GA745@first.in-berlin.de>

On Tue, 8 Aug 2006, Oliver Bandel wrote:

> Is this a wanted behaviour?
> It's an implicit conversion from the integer value in the cli-string
> to float. Even if this is very convenient for a user, it is not
> completely following OCaml's philosophy (regarding types).

Not really.  It's the same behavior as float_of_string (because it uses 
float of string).

# float_of_string "42";;
- : float = 42.

William D. Neumann

---

"There's just so many extra children, we could just feed the
children to these tigers.  We don't need them, we're not doing 
anything with them.

Tigers are noble and sleek; children are loud and messy."

         -- Neko Case

Life is unfair.  Kill yourself or get over it.
 	-- Black Box Recorder


  reply	other threads:[~2006-08-08 21:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-08 20:57 Oliver Bandel
2006-08-08 21:19 ` William D. Neumann [this message]
2006-08-08 21:33   ` [Caml-list] " Oliver Bandel
2006-08-08 21:40     ` Sachin Shah
2006-08-08 22:12       ` Oliver Bandel
2006-08-09  3:25         ` Jonathan Roewen
2006-08-09  3:30           ` Jonathan Roewen
2006-08-09  5:54           ` Oliver Bandel
2006-08-09  6:13             ` Jonathan Roewen

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=Pine.LNX.4.62.0608081515510.11319@io.cs.unm.edu \
    --to=wneumann@cs.unm.edu \
    --cc=caml-list@inria.fr \
    --cc=oliver@first.in-berlin.de \
    /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).