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=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id A63A6BB84 for ; Fri, 12 Sep 2008 16:19:56 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhkBAG8XykjOvjGvmmdsb2JhbACSZwEBAQEBCAUIBxEDpUADhAI X-IronPort-AV: E=Sophos;i="4.32,389,1217800800"; d="scan'208";a="29113697" Received: from web54605.mail.re2.yahoo.com ([206.190.49.175]) by mail4-smtp-sop.national.inria.fr with SMTP; 12 Sep 2008 16:19:56 +0200 Received: (qmail 21183 invoked by uid 60001); 12 Sep 2008 14:19:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=sds5aQ3CGBZwyfVQ56hoSZMPD1KrVJO5XSrkLh5K5DomR5f3+oL6pEMm1T1TZWlb/5qQl4fEaGQPZvTspsLBbbu/oTIUrCSARLL26NWVQ0I6fMGyhEusikrev/yfmOP+Rh6BXWCzpxoipghOVCJ2aFuGUHzTTGESJmjwANBx/7A=; X-YMail-OSG: FlEW0M8VM1nscoF_Wz_ungvp1FXobNn6I9sqKQpo5mLblivrJJl8E9R.nGzs1rcmydbPrMa441o6VUI.kmT4TTPX6ugcXTtlsZYNVBvnQvlk8XMy3bcqGDN_9KYsXUXJG.A- Received: from [213.205.69.169] by web54605.mail.re2.yahoo.com via HTTP; Fri, 12 Sep 2008 07:19:54 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Fri, 12 Sep 2008 07:19:54 -0700 (PDT) From: Dario Teixeira Subject: Re: [Caml-list] Private type syntax and error message To: caml-list@yquem.inria.fr, Jon Harrop In-Reply-To: <200809121604.56179.jon@ffconsultancy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <78095.20041.qm@web54605.mail.re2.yahoo.com> X-Spam: no; 0.00; syntax:01 cvs:01 cheers:01 abstract:01 abstract:01 caml-list:01 functions:01 constructor:01 construct:02 btw:03 module:03 useless:07 useful:09 feature:09 actually:10 > What do you expect it to do that might work? If it created > an abstract type=20 > the type would be useless, having no way to construct or > destructure values=20 > of that type... Hi, I think the idea is that the type would be declared inside a module that would provide constructor functions. Moreover, because private is not abstract, it would allow the outside world to pattern-match on values of that type. This is actually a very useful feature. Btw, the code works on 3.11 CVS! Cheers, Dario Teixeira =0A=0A=0A