From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.user Subject: Re: loading a module via an absolute path Date: 19 Oct 2002 12:44:22 +0200 Sender: guile-user-admin@gnu.org Message-ID: <87iszyzp15.fsf@zagadka.ping.de> References: <87vg4gl4g3.fsf@raven.i.defaultvalue.org> <87adlb1iz4.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 1035025903 23143 80.91.224.249 (19 Oct 2002 11:11:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2002 11:11:43 +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 182rW9-000611-00 for ; Sat, 19 Oct 2002 13:11:42 +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 182r6q-0004Na-00; Sat, 19 Oct 2002 06:45:32 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 182r5p-0003uk-00 for guile-user@gnu.org; Sat, 19 Oct 2002 06:44:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 182r5l-0003tY-00 for guile-user@gnu.org; Sat, 19 Oct 2002 06:44:28 -0400 Original-Received: from mail.dokom.net ([195.253.8.218]) by monty-python.gnu.org with esmtp (Exim 4.10) id 182r5k-0003tC-00 for guile-user@gnu.org; Sat, 19 Oct 2002 06:44:25 -0400 Original-Received: from dialin.speedway42.dip160.dokom.de ([195.138.42.160] helo=zagadka.ping.de ident=qmailr) by mail.dokom.net with smtp (Exim 3.32 #2) id 182r6G-00019U-00 for guile-user@gnu.org; Sat, 19 Oct 2002 12:44:56 +0200 Original-Received: (qmail 18640 invoked by uid 1000); 19 Oct 2002 10:44:22 -0000 Original-To: guile-user@gnu.org In-Reply-To: Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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:1222 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1222 prj@po.cwru.edu (Paul Jarc) writes: > That's not quite what I'm looking for. The way I did it, I don't use > define-module at all; the imported code doesn't know or care what name > the importing code uses to refer to it. The loader procedure takes > care of creating a new (anonymous) module, and loads the code into it. I see. You shouldn't use 'use-modules' for it, then. It is better to give this new concept a new set of functions to work with it. > I'd be happy to keep using my loader, except that the modules it > creates (with make-safe-module) are too sparse - lacking useful > things like, say, defined?. OTOH, a library loaded by use-modules > has all the normal bindings at its disposal. How can I create a > module like that? You can use (make-module 1021 (list (resolve-interface '(guile)))) -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user