From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id D34C6BC2F for ; Sat, 27 Nov 2004 00:14:01 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iAQNE0IW024510 for ; Sat, 27 Nov 2004 00:14:00 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA25939 for ; Sat, 27 Nov 2004 00:14:00 +0100 (MET) Received: from tcs.inf.tu-dresden.de (tcs.inf.tu-dresden.de [141.76.75.101]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iAQNDxII012932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 27 Nov 2004 00:14:00 +0100 Received: from ithif59.inf.tu-dresden.de (ithif59 [141.76.75.59]) by tcs.inf.tu-dresden.de (8.12.9/8.12.9) with ESMTP id iAQNDxqI005384 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 27 Nov 2004 00:13:59 +0100 (MET) Received: from tews by ithif59.inf.tu-dresden.de with local (Exim 4.34) id 1CXoVn-00026n-AM for caml-list@inria.fr; Fri, 26 Nov 2004 23:24:19 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] Why doesn't ocamlopt detect a missing ; after failwith statement? References: <1101427906.9291.107.camel@pelican.wigram> <20041126.094412.30442729.garrigue@math.nagoya-u.ac.jp> <1101438486.9291.138.camel@pelican.wigram> <20041126.142525.93385094.garrigue@math.nagoya-u.ac.jp> From: Hendrik Tews Date: 26 Nov 2004 23:24:19 +0100 In-Reply-To: <20041126.142525.93385094.garrigue@math.nagoya-u.ac.jp> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) at tcs.inf.tu-dresden.de X-Miltered: at concorde with ID 41A7B8B8.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41A7B8B7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamlopt:01 failwith:01 hendrik:01 tews:01 tews:01 hendrik:01 ...:98 writes:01 functions:01 tu-dresden:01 jacques:01 variables:02 tcs:02 garrigue:03 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: Jacques Garrigue writes: Note that void in C is definitely not zero. You cannot have variables C++ standard, 3.9.1.9: The void type has an empty set of values. ... So I would say void is zero. On the other side you have functions returning void. Therefore I would conclude that the type theory of C++ is unsound. Bye, Hendrik