From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA11918; Fri, 9 Jan 2004 08:36:25 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA11389 for ; Fri, 9 Jan 2004 08:36:24 +0100 (MET) Received: from grisu.bik-gmbh.de (grisu.bik-gmbh.de [217.110.154.194]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id i097aN502147 for ; Fri, 9 Jan 2004 08:36:23 +0100 (MET) Received: from bik-gmbh.de ([192.168.125.193]) by grisu.bik-gmbh.de (8.12.8p2/8.12.8) with ESMTP id i097aIuQ066902 for ; Fri, 9 Jan 2004 08:36:18 +0100 (CET) (envelope-from hars@bik-gmbh.de) Message-ID: <3FFE59ED.6050305@bik-gmbh.de> Date: Fri, 09 Jan 2004 08:36:13 +0100 From: Florian Hars User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: en-us, de-de, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Reason why 'for' doesn't work across floats? References: <20040108141152.GA19714@redhat.com> <20040108150358.GA6893@roke.freak> <20040108154759.GA22093@redhat.com> In-Reply-To: <20040108154759.GA22093@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-2.6 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; florian:01 hars:01 hars:01 bik-gmbh:01 caml-list:01 floats:01 2004:99 michal:01 moskal:01 foobar:01 1.2,:01 florian:01 int:01 int:01 float:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Richard Jones wrote: > On Thu, Jan 08, 2004 at 04:03:58PM +0100, Michal Moskal wrote: >>>let f a b = for x = a to b do () done >> >>What type would f have (int -> int -> int or float -> float -> float)? > > Perhaps 'a -> 'a -> 'a ? So how many iterations would f (Some (fun x -> x < "foobar"), None) (None, Some [| 1.2, 1.4, 1.6|]) perform? Yours, Florian. ------------------- 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