From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA28287; Tue, 7 Aug 2001 19:32:43 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 TAA28436 for ; Tue, 7 Aug 2001 19:32:42 +0200 (MET DST) Received: from localhost.localdomain (cartman23.zip.com.au [61.8.20.151]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f77HWd524936 for ; Tue, 7 Aug 2001 19:32:39 +0200 (MET DST) Received: from maxtal.com.au (IDENT:root@localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.8.7) with ESMTP id DAA15425; Wed, 8 Aug 2001 03:32:25 +1000 Message-ID: <3B702629.52BEDCBC@maxtal.com.au> Date: Wed, 08 Aug 2001 03:32:25 +1000 From: John Max Skaller X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: Hendrik Tews CC: Caml-list Subject: Re: empty type (was [Caml-list] Please help a newbie) References: <3B6DBC9A.1E6B82A2@maxtal.com.au> <15214.27431.174543.115555@gargle.gargle.HOWL> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hendrik Tews wrote: > It is my contention that the type of procedures is wrong > in ocaml precisely because they return unit, when they > _should_ be returning void (that is, nothing). > > So what typing rules do you use for the empty type? Usually a > type theory is inconsistent as soon as one has an inhabitant of > the empty type. Felix has statements and expressions. The typing rule is: f:T -> void, a:T |- f a: void Note that 'f a' cannot occur inside an expression, indeed, it isn't an expression but a statement. -- John (Max) Skaller, mailto:skaller@maxtal.com.au 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 New generation programming language Felix http://felix.sourceforge.net Literate Programming tool Interscript http://Interscript.sourceforge.net ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr