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 096B8BCB0 for ; Thu, 9 Jun 2005 23:17:14 +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 j59LHDEj001410 for ; Thu, 9 Jun 2005 23:17:13 +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 XAA25938 for ; Thu, 9 Jun 2005 23:17:13 +0200 (MET DST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j59LHCon005339 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 9 Jun 2005 23:17:12 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1DgUTz-0008Vn-00 for ; Thu, 09 Jun 2005 22:22:35 +0100 Date: Thu, 9 Jun 2005 22:22:34 +0100 To: caml-list@inria.fr Subject: type t = () Message-ID: <20050609212234.GA32710@furbychan.cocan.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: Richard Jones X-Miltered: at nez-perce with ID 42A8B1D9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42A8B1D8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 printf:01 printf:01 notepad:01 ...:98 expression:01 defined:01 caml:02 objective:02 confused:02 unit:03 let:03 marketing:93 business:90 dummy:12 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: I had a program where a type was accidentally defined as (), and the error messages confused me for ages until I worked out what was going on ... $ ocaml Objective Caml version 3.08.3 # type dummy = ();; type dummy = () # let () = Printf.printf "hello";; This expression has type unit but is here used with type dummy Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com