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
How to find out free diskspace?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-07-22 (17:33)
From: Eric Cooper <ecc@c...>
Subject: Re: [Caml-list] Re: How to find out free diskspace?
On Fri, Jul 22, 2005 at 02:46:23PM +0200, Bernd Kuhls wrote:
> Stephane Glondu wrote:
> >On Thursday 21 July 2005 08:52, Bernd Kuhls wrote:
> >
> >>The code for "ifndef HAVE_STATS" is still lacking, how should it look
> >>like?
> >
> >
> >I would say raise an exception.
> Hi,
> this would be necessary for runtime, but my question was about what to 
> code for compile time when the headers files necessary can't be found?

Do you want it to fail at compile time or run time?  For the former,
use the #error "..." directive.  For the latter, define a function
that always throws an exception.

Eric Cooper             e c c @ c m u . e d u