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 A0675BB83 for ; Wed, 19 Jul 2006 13:42:23 +0200 (CEST) Received: from mail.rsise.anu.edu.au (mail.rsise.anu.edu.au [150.203.208.4]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k6JBgKEU018442 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 19 Jul 2006 13:42:23 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.rsise.anu.edu.au (Postfix) with ESMTP id EBF555455F for ; Wed, 19 Jul 2006 21:42:15 +1000 (EST) Received: from mail.rsise.anu.edu.au ([150.203.208.4]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05025-09 for ; Wed, 19 Jul 2006 21:42:15 +1000 (EST) Received: from pulp.rsise.anu.edu.au (pulp.rsise.anu.edu.au [150.203.208.49]) by mail.rsise.anu.edu.au (Postfix) with ESMTP id B6A0454558 for ; Wed, 19 Jul 2006 21:42:15 +1000 (EST) Received: by pulp.rsise.anu.edu.au (Postfix, from userid 1560) id B60BEA0AFC8; Wed, 19 Jul 2006 21:42:31 +1000 (EST) Date: Wed, 19 Jul 2006 21:42:31 +1000 From: Pietro Abate To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] global record Message-ID: <20060719114231.GA29405@pulp.rsise.anu.edu.au> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: GNU/Linux X-Organization: Research School of Information Science and Engineering (Australian National University) User-Agent: Mutt/1.5.12-2006-07-14 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mail.rsise.anu.edu.au X-Miltered: at concorde with ID 44BE1A9C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; anu:01 overwritten:01 command-line:01 runtime:01 anu:01 2006:98 blog:98 blog:98 wrote:01 caml-list:01 functions:01 andreas:01 modules:01 parameters:02 parameters:02 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 Wed, Jul 19, 2006 at 01:11:22PM +0200, Andreas Biegert wrote: > static but some values can be overwritten by command-line options. Is > there a way to make the (possibly modified) parameters record globally > accessable throughout all modules? This would be much more convenient > than having to pass the parameters record to virtually all functions > in my application. THX for helping. For my application I've a module where each runtime option is a ref and then I use the Arg module to set the proper value. Don't know if there are better way of doing this... :) p -- ++ Blog: http://blog.rsise.anu.edu.au/?q=pietro ++ ++ "All great truths begin as blasphemies." -George Bernard Shaw ++ Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html