From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id EF90BBBE1 for ; Thu, 12 Oct 2006 08:10:12 +0200 (CEST) Received: from smtp109.mail.mud.yahoo.com (smtp109.mail.mud.yahoo.com [209.191.85.219]) by discorde.inria.fr (8.13.6/8.13.6) with SMTP id k9C6ABhg025117 for ; Thu, 12 Oct 2006 08:10:12 +0200 Received: (qmail 9170 invoked from network); 12 Oct 2006 06:10:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.ar; h=Received:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=GuTZanLAWOAXXiVfo0tDgjvyGSzlmNbIUXMuIj45jaruYmbV2/Npvg8CN5LzY1eHhipbUsd7vS63hmkP3hQ37yDKc7ldZuGWKLLCkuR7hLkEVav+aJYLU2YTQXomsezhBykhxoa0WiNp3GRQxdjG/t82FvVZ1d2GDsC8+xIkZgY= ; Received: from unknown (HELO ?192.168.0.100?) (cpitadev@201.254.106.107 with plain) by smtp109.mail.mud.yahoo.com with SMTP; 12 Oct 2006 06:10:10 -0000 Subject: Re: [Caml-list] Why + vs +. but "fake" parametric polymorphism for < From: Carlos Pita To: Jonathan Roewen Cc: caml-list@yquem.inria.fr In-Reply-To: References: <1160630365.7649.20.camel@monad> <1160631680.7649.27.camel@monad> Content-Type: text/plain Date: Thu, 12 Oct 2006 03:10:07 -0300 Message-Id: <1160633407.7649.39.camel@monad> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 452DDC43.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; parametric:01 polymorphism:01 unboxed:01 crystal:98 saber:98 respuestas:98 respuestas:98 caml-list:01 int:01 int:01 let:03 beta:04 comparison:04 comparison:04 max:05 > > Pretty expensive for a simple int comparison I would say. > > It is not an int comparison! Ok, I meant it would put much of a burden on performance in case max was called with mere unboxed int arguments. > Try: > > let int_max a b : int = if a > b then a else b Great! It's crystal clear now. Thank you all! __________________________________________________ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas