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=3.0 required=5.0 tests=AWL,DNS_FROM_RFC_POST, DNS_FROM_SECURITYSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id AD8DBBB84 for ; Thu, 30 Oct 2008 21:34:09 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAAABi3CUlC+VyqkGdsb2JhbACTTT4BAQEBCQkMBxEDrgOKUAEDAQODToIE X-IronPort-AV: E=Sophos;i="4.33,517,1220220000"; d="scan'208";a="16689897" Received: from ug-out-1314.google.com ([66.249.92.170]) by mail2-smtp-roc.national.inria.fr with ESMTP; 30 Oct 2008 21:34:08 +0100 Received: by ug-out-1314.google.com with SMTP id k3so1099724ugf.4 for ; Thu, 30 Oct 2008 13:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer:sender; bh=u5UM1QMc2+9NeMl5A2HVcghSASZwLwbeMlWeWIzDGMI=; b=uTceiEEQvnMk3kp6vQBa7k9EYGMXL+xytTSQER2lRzVSwqeBkhTP9sDfEWx+Gpc672 9yJbgGQrQ7QxUxVnL/Kh8aVkCgju+wUfK3Xjvf5nrkK70YFwpKrUyw4CR6+KVBmQczx7 q7qdA2XjCCAtxmoysQ3j7hf7aXRHggZX/04go= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer:sender; b=BIyh1cT1/T4RhbPt0HFgt/xZDJM9+mIR/MPLtCkMt0GuUtd46TAtYu43FZBNPZCIqA oGN8Xxj9Sx6AhtLSXKgpEn2YlNpcZnhgqSm5RJIZRza9gznQLbzIuD5pVwFlf5nh3QhE XNaM33aNe06uXu6UXP88zFQXCBwTC7CJqJn3U= Received: by 10.86.54.3 with SMTP id c3mr686739fga.33.1225398847876; Thu, 30 Oct 2008 13:34:07 -0700 (PDT) Received: from ?10.0.1.2? (33-98.0-85.cust.bluewin.ch [85.0.98.33]) by mx.google.com with ESMTPS id 4sm3425666fgg.4.2008.10.30.13.34.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Oct 2008 13:34:07 -0700 (PDT) Message-Id: <04092D60-3BB6-49A6-8A04-0BFE3A2081BD@erratique.ch> From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= To: OCaml List In-Reply-To: <340C8DB35D244173AE527238DB359A19@countertenor> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: [Caml-list] Private types Date: Thu, 30 Oct 2008 21:33:39 +0100 References: <340C8DB35D244173AE527238DB359A19@countertenor> X-Mailer: Apple Mail (2.929.2) Sender: =?UTF-8?B?RGFuaWVsIELDvG56bGk=?= X-Spam: no; 0.00; bunzli:01 buenzli:01 substituted:01 caml-list:01 int:01 int:01 caml:02 match:02 string:02 pattern:04 daniel:04 daniel:04 types:05 types:05 manual:06 Le 30 oct. 08 =E0 21:18, David Allsopp a =E9crit : > Shouldn't I now be able to say: > > string_of_int x;; I don't think so. According to the manual [1] the only thing you can =20 do on private types is pattern match or project their fields. I =20 doesn't mean your type can be substituted by int. Daniel [1] http://caml.inria.fr/pub/docs/manual-ocaml/manual021.html#htoc99