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: Sat, 19 Oct 2002 16:42:52 -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> <87adlb1iz4.fsf@zagadka.ping.de> <87iszyzp15.fsf@zagadka.ping.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035060317 18899 80.91.224.249 (19 Oct 2002 20:45:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2002 20:45:17 +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 1830TE-0004ua-00 for ; Sat, 19 Oct 2002 22:45:16 +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 1830RJ-0006vD-00; Sat, 19 Oct 2002 16:43:17 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 1830Qx-0006lU-00 for guile-user@gnu.org; Sat, 19 Oct 2002 16:42:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 1830Qv-0006lH-00 for guile-user@gnu.org; Sat, 19 Oct 2002 16:42:54 -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 1830Qv-0006lD-00 for guile-user@gnu.org; Sat, 19 Oct 2002 16:42:53 -0400 Original-Received: (qmail 18899 invoked by uid 500); 19 Oct 2002 20:43:14 -0000 Original-To: guile-user@gnu.org In-Reply-To: <87iszyzp15.fsf@zagadka.ping.de> (Marius Vollmer's message of "19 Oct 2002 12:44:22 +0200") Mail-Copies-To: nobody Mail-Followup-To: guile-user@gnu.org Original-Lines: 18 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:1229 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1229 Marius Vollmer wrote: > (make-module 1021 (list (resolve-interface '(guile)))) This seems to be exactly what I'm looking for, thanks. And it seems to me that such a module includes the 'app binding, so invocations of use-modules from the main module and the new module will not duplicate each others' work, right? Good. One last (heh) question, then: after I've loaded the file into a new module like this, is there a way to mark the module as "read-only" so that the importing code can't change bindings inside this module? One of my goals is to protect modules from each other. It looks like it's easy enough to avoid messing with someone else's bindings by accident, but I'd like to make it impossible to do it even deliberately, if I can. paul _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user