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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 1591DBC57 for ; Thu, 7 Oct 2010 19:09:39 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhEHAMebrUxV6aAZUmdsb2JhbACDH5EmjgALARYJCgYEECK5F5JIDYEVgzF0BIpAgwI X-IronPort-AV: E=Sophos;i="4.57,298,1283724000"; d="scan'208";a="80305320" Received: from outgoing-smtp.namesco.net ([85.233.160.25]) by mail1-smtp-roc.national.inria.fr with ESMTP; 07 Oct 2010 19:09:38 +0200 Received: from [192.168.0.17] (helo=venus) by outgoing-smtp.namesco.net with esmtp (Exim 4.67) (envelope-from ) id 1P3tyK-0001Ov-56 for caml-list@yquem.inria.fr; Thu, 07 Oct 2010 18:09:36 +0100 Received: from root by venus with local (Exim 4.69) (envelope-from ) id 1P3tyL-0001KI-IT for caml-list@yquem.inria.fr; Thu, 07 Oct 2010 18:09:37 +0100 To: From: Reply-To: Subject: =?utf-8?q?aborting=20a=20build=20when=20encountering=20first=20error?= MIME-Version: 1.0 X-Mailer: Namesco Webmail v3.0 Message-ID: <1286471377183@names.co.uk> Date: Thu, 07 Oct 2010 18:09:37 +0100 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-namescosender: 0 2002 X-namesco: 192.168.0.171 X-Spam-Score: -1.0 (-) X-Spam: no; 0.00; ocaml's:01 ocaml:01 intentional:01 ocaml's:01 bug:01 behaviour:01 top-level:03 nested:04 nested:04 problem:05 directive:06 directive:06 indeed:07 i'm:09 hitting:09 Hi, I'm using OCaml's #use directive to incorporate my program's source files into an OCaml top level session. I naturally want it to abort upon hitting the first problem. And indeed, a #use directive does abort when it encounters the first error in the source file it calls. However a nested #use (a #use directive inside a file that is being "#used") does not abort the outer #use operation. This means my nested source files don't cause a top-level abort on encountering the first error. What's the neatest way to get my desired behaviour? (and is this an intentional characteristic of OCaml's #use or is it a bug in the language?) Thanks, Mark.