From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 189D5BB81 for ; Fri, 22 Jul 2005 19:33:41 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j6MHXem2013252 for ; Fri, 22 Jul 2005 19:33:40 +0200 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 TAA00418 for ; Fri, 22 Jul 2005 19:33:40 +0200 (MET DST) Received: from ux9.sp.cs.cmu.edu (UX9.SP.CS.CMU.EDU [128.2.220.166]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j6MHXdOo013242 for ; Fri, 22 Jul 2005 19:33:39 +0200 Received: from c-24-3-154-200.hsd1.pa.comcast.net ([24.3.154.200]) by ux9.sp.cs.cmu.edu id aa23565; 22 Jul 2005 10:10 EDT Received: from ecc by stratocaster.home with local (Exim 4.52) id 1DvyEK-0001aj-CJ for caml-list@inria.fr; Fri, 22 Jul 2005 10:10:24 -0400 Date: Fri, 22 Jul 2005 10:10:24 -0400 To: caml-list@inria.fr Subject: Re: [Caml-list] Re: How to find out free diskspace? Message-ID: <20050722141024.GB5992@localhost> Mail-Followup-To: caml-list@inria.fr References: <20050701181950.GA2557@furbychan.cocan.org> <200507210918.24720.Stephane.Glondu@crans.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i From: Eric Cooper X-Miltered: at concorde with ID 42E12DF4.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42E12DF3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 bernd:01 bernd:01 runtime:01 ...:98 wrote:01 wrote:01 exception:01 exception:01 compile:01 compile:01 define:01 directive:02 latter:03 raise:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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