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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Andrej Bauer <Andrej.Bauer@f...>
Subject: Re: RE : [Caml-list] empty type
Mathias Kende wrote:
> It's not a type, but just a valid name for a constructor that can be
> redefined if necessary (although one surely does not want to do so).

Way cool:

# type t = () of int * int ;;
type t = () of int * int
# () (3, 4) ;;
- : t = () (3, 4)

Andrej