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 72A98BC69 for ; Mon, 19 Feb 2007 15:14:12 +0100 (CET) Received: from ipmail02.adl2.internode.on.net (ipmail02.adl2.internode.on.net [203.16.214.141]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1JEEAxb015964 for ; Mon, 19 Feb 2007 15:14:11 +0100 Received: from ppp19-199.lns2.syd7.internode.on.net (HELO rosella) ([59.167.19.199]) by ipmail02.adl2.internode.on.net with ESMTP; 20 Feb 2007 00:44:07 +1030 X-IronPort-AV: i="4.14,190,1170595800"; d="scan'208"; a="86795318:sNHT31690799" Subject: Re: [Caml-list] empty type From: skaller To: Fernando Alegre Cc: caml-list@inria.fr In-Reply-To: <20070219134738.GA26859@gaia.cc.gatech.edu> References: <20070219134738.GA26859@gaia.cc.gatech.edu> Content-Type: text/plain Date: Tue, 20 Feb 2007 01:14:04 +1100 Message-Id: <1171894444.5356.18.camel@rosella.wigram> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 45D9B0B2.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bug:01 haskell:01 notation:01 bug:01 sourceforge:01 wrote:01 caml-list:01 defined:02 caml:02 objective:02 unit:03 unit:03 fernando:06 looks:08 alegre:08 On Mon, 2007-02-19 at 08:47 -0500, Fernando Alegre wrote: > Hi, > > I think this is a bug, but I'm not sure. I mistakenly defined type e using > Haskell notation, and it was accepted. However, it shadowed the unit type. > Can someone confirm whether this should be acceptable or not? > > Thanks. > > Objective Caml version 3.09.2 > > # type e = ();; What? That sure looks like a bug. () is a value of type unit .. it isn't a type. -- John Skaller Felix, successor to C++: http://felix.sf.net