From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 086CCBC29 for ; Tue, 8 Aug 2006 23:19:16 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k78LJF2p001466 for ; Tue, 8 Aug 2006 23:19:15 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA31414 for ; Tue, 8 Aug 2006 23:19:14 +0200 (MET DST) Received: from mail.cs.unm.edu (mail.cs.unm.edu [64.106.20.33]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k78LJDCV020281 for ; Tue, 8 Aug 2006 23:19:14 +0200 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.cs.unm.edu (Postfix) with ESMTP id 73025E4218; Tue, 8 Aug 2006 15:19:08 -0600 (MDT) Received: from mail.cs.unm.edu ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04791-03; Tue, 8 Aug 2006 15:19:08 -0600 (MDT) Received: from io.cs.unm.edu (io.cs.unm.edu [64.106.21.21]) by mail.cs.unm.edu (Postfix) with ESMTP id 355D4E41F8; Tue, 8 Aug 2006 15:19:08 -0600 (MDT) Date: Tue, 8 Aug 2006 15:19:15 -0600 (MDT) From: "William D. Neumann" To: Oliver Bandel Cc: caml-list@inria.fr Subject: Re: [Caml-list] Arg-module: Float-Args also accept integer values In-Reply-To: <20060808205748.GA745@first.in-berlin.de> Message-ID: References: <20060808205748.GA745@first.in-berlin.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at cs.unm.edu X-Miltered: at concorde with ID 44D8FFD3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 44D8FFD1.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; bandel:01 ocaml's:01 2006,:98 recorder:98 wrote:01 oliver:01 caml-list:01 integer:01 integer:01 behaviour:01 neumann:02 neumann:02 string:02 string:02 black:96 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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