English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2007-07-28 (07:25)
From: Chung-chieh Shan <ccshan@p...>
Subject: Re: Void type?
Stefan Monnier <monnier@iro.umontreal.ca> wrote in article <jwvvec5dv32.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org> in gmane.comp.lang.caml.inria:
> Is there a void type in OCaml (i.e. a type which has no values), or a way to
> simulate it?

type void = Void of void

Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
It is the first responsibility of every citizen to question authority.
Benjamin Franklin