Version française
Home     About     Download     Resources     Contact us    
Browse thread
Void type?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] Void type?
Hi,

On Sat, Jul 28, 2007 at 12:14:40AM -0400, Stefan Monnier wrote:
> 
> Is there a void type in OCaml (i.e. a type which has no values), or a way to
> simulate it?

You can do that with the revised syntax in Camlp5 :
    type t = [];

No equivalent in normal syntax.

-- 
Daniel de Rauglaudre
http://pauillac.inria.fr/~ddr/