From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 466E2BCB0 for ; Fri, 10 Jun 2005 00:07:22 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j59M7LPD005266 for ; Fri, 10 Jun 2005 00:07:21 +0200 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 AAA24551 for ; Fri, 10 Jun 2005 00:07:21 +0200 (MET DST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j59M7Kg6009917 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 10 Jun 2005 00:07:20 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DgV5l-000685-Gv for caml-list@inria.fr; Fri, 10 Jun 2005 00:01:37 +0200 Received: from host211-142.pool8251.interbusiness.it ([82.51.142.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2005 00:01:37 +0200 Received: from vincenzo_yahoo_addressguard-gmane by host211-142.pool8251.interbusiness.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2005 00:01:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Vincenzo Ciancia Subject: Re: type t = () Date: Fri, 10 Jun 2005 00:05:18 +0200 Message-ID: References: <20050609212234.GA32710@furbychan.cocan.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: host211-142.pool8251.interbusiness.it User-Agent: KNode/0.9.0 Sender: news X-Miltered: at nez-perce with ID 42A8BD99.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42A8BD98.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; printf:01 printf:01 compiler:01 attenzione:98 l'indirizzo:98 posta:98 nel:98 campo:98 wrote:01 constructor:01 constructor:01 expression:01 int:01 int:01 seems:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Richard Jones wrote: > # type dummy = ();; > type dummy = () > # let () = Printf.printf "hello";; > This expression has type unit but is here used with type dummy > It seems that the compiler accepted "()" as a type constructor, so now every instance of "()" is the only constructor of type "dummy" e.g. # type d = () of int;; type d = () of int # () 3;; - : d = () 3 V. -- Please note that I do not read the e-mail address used in the from field but I read vincenzo_ml at yahoo dot it Attenzione: non leggo l'indirizzo di posta usato nel campo from, ma leggo vincenzo_ml at yahoo dot it