From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.user Subject: Re: loading a module via an absolute path Date: Fri, 18 Oct 2002 14:21:35 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: guile-user-admin@gnu.org Message-ID: References: <87vg4gl4g3.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034965507 29318 80.91.224.249 (18 Oct 2002 18:25:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2002 18:25:07 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 182bo0-0007cB-00 for ; Fri, 18 Oct 2002 20:25:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182blo-0001s5-00; Fri, 18 Oct 2002 14:22:48 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 182bkn-0001X4-00 for guile-user@gnu.org; Fri, 18 Oct 2002 14:21:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 182bkj-0001WJ-00 for guile-user@gnu.org; Fri, 18 Oct 2002 14:21:44 -0400 Original-Received: from multivac.student.cwru.edu ([129.22.96.25] helo=multivac.cwru.edu) by monty-python.gnu.org with smtp (Exim 4.10) id 182bki-0001VQ-00 for guile-user@gnu.org; Fri, 18 Oct 2002 14:21:41 -0400 Original-Received: (qmail 8652 invoked by uid 500); 18 Oct 2002 18:21:58 -0000 Original-To: guile-user@gnu.org In-Reply-To: <87vg4gl4g3.fsf@raven.i.defaultvalue.org> (Rob Browning's message of "Sat, 05 Oct 2002 20:51:56 -0500") Mail-Copies-To: nobody Mail-Followup-To: guile-user@gnu.org Original-Lines: 27 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:1202 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1202 Ok, I got my modules-with-absolute-paths working, but there is noticeable friction between it and use-modules. Is there any chance of extending use-modules (or providing a cooperating procedure) to allow things like: (use-modules ("/path/to/foo.scm" :select ...)) ? Rob Browning wrote: > guile> (use-modules (ice-9 safe)) > guile> (define msm (make-safe-module)) The main problem I've had with this is that it's too safe. How do I create a module with the same bindings as the original "root" module, after boot-9, etc., was loaded in it? I.e., the kind use-modules creates for the libraries it loads? If there's a way to iterate over the bindings in a module, I guess I could add them one by one with module-define!. > guile> (module-use! (current-module) msm) > #f Ah - would (module-use! msm (current-module)) do what I want? Or would that risk creating a harmful loop if I also import bindings the other way? paul _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user