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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id F0E85BB81 for ; Thu, 23 Feb 2006 23:50:06 +0100 (CET) Received: from cenn.mc.mpls.visi.com (cenn.mc.mpls.visi.com [208.42.156.9]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k1NMo6Ia024613 for ; Thu, 23 Feb 2006 23:50:06 +0100 Received: from [192.168.42.2] (bhurt.dsl.visi.com [208.42.141.66]) by cenn.mc.mpls.visi.com (Postfix) with ESMTP id 5699D82C2; Thu, 23 Feb 2006 16:50:05 -0600 (CST) Date: Thu, 23 Feb 2006 16:50:06 -0600 (CST) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: =?iso-8859-1?Q?Fr=E9d=E9ric_Gava?= Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] (int * int) <> int*int ? In-Reply-To: <012001c638c8$b10139a0$1f570b50@mshome.net> Message-ID: References: <006101c6389e$9bbbc440$1f570b50@mshome.net> <20060223183306.GA17390@localhost> <009b01c638ac$6a57b0e0$1f570b50@mshome.net> <00e301c638c0$5368ef20$1f570b50@mshome.net> <012001c638c8$b10139a0$1f570b50@mshome.net> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-141855211-1140734699=:9569" Content-ID: X-Miltered: at nez-perce with ID 43FE3C1E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 gava:01 indirection:01 constructors:01 work-:98 wrote:01 int:01 int:01 readable:02 variant:02 variant:02 unreadable:02 types:02 types:02 frederic:03 X-Attachments: cset="X-UNKNOWN" 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-141855211-1140734699=:9569 Content-Type: TEXT/PLAIN; CHARSET=X-UNKNOWN; FORMAT=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: On Thu, 23 Feb 2006, Fr=E9d=E9ric Gava wrote: > But where tag could represent information both int*int and (int*int) whic= h > is the same things (modulo an indirection which could be deleted at > pattern-mathching). Morever, as Jon points of, variant types do not have > this curious things due to boxed values... Variant types always box. They always have the reference. I understand=20 you're arguing that type constructors should work the same way. Well, maybe they should have. I'm not sure I'd like it if that was=20 changed now, however. Working code wouldn't cease to work- it'd just be=20 less memory efficient. But you'd always have the extra reference, even if= =20 you didn't need it. Brian --8323328-141855211-1140734699=:9569--