From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.lisp.guile.user Subject: modules Date: 20 Mar 2004 21:40:28 -0800 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <877jxeahbn.fsf@buug.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079847980 23314 80.91.224.253 (21 Mar 2004 05:46:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Mar 2004 05:46:20 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Mar 21 06:46:14 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B4vmo-0002UZ-00 for ; Sun, 21 Mar 2004 06:46:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B4vhz-0008VL-8z for guile-user@m.gmane.org; Sun, 21 Mar 2004 00:41:15 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B4vhs-0008V6-Vq for guile-user@gnu.org; Sun, 21 Mar 2004 00:41:08 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B4vhM-0008TF-7Q for guile-user@gnu.org; Sun, 21 Mar 2004 00:41:08 -0500 Original-Received: from [198.144.194.12] (helo=disorder.primate.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1B4vhL-0008RH-P2 for guile-user@gnu.org; Sun, 21 Mar 2004 00:40:35 -0500 Original-Received: from disorder.primate.net (localhost [127.0.0.1]) by disorder.primate.net (8.12.11/8.12.11/Debian-3) with ESMTP id i2L5eUdk030117 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 20 Mar 2004 21:40:30 -0800 Original-Received: from localhost (localhost [[UNIX: localhost]]) by disorder.primate.net (8.12.11/8.12.11/Debian-3) id i2L5eU2J030116 for guile-user@gnu.org; Sat, 20 Mar 2004 21:40:30 -0800 X-Authentication-Warning: disorder.primate.net: itz set sender to itz@buug.org using -f Original-Received: from itz by homage with local (Exim 3.36 #1 (Debian)) id 1B4vhE-0000Ma-00 for ; Sat, 20 Mar 2004 21:40:28 -0800 Original-To: guile-user@gnu.org Original-Lines: 39 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2958 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2958 Hi, I am fairly new to guile. So far I am just exploring it as just another Lisp/Scheme, and writing toy programs in Scheme. In that connection, I have two questions related to the module system. 1/ How can I customize a module during loading? In Emacs Lisp, I can either: a) set a global variable, for instance (setq foo-module:bar 'baz) prior to loading a library "foo-module". If that library itself does (defvar foo-module:bar) it picks up the value that was previously set. But in Scheme, set! only works on variables that have already been define'd, and a define creates a new variable totally unrelated to the existing value. b) use eval-after-load; is there any equivalent in guile? 2/ The documentation for eval says the second argument can be a module. But how can I get an actual module object? I tried (eval foo '(ice-9 rw)) but I get Wrong type argument in position 2 (expecting MODULEP): (ice-9 rw) ABORT: (wrong-type-arg) Neither the section on using modules or the section on defining them seems to list any API for getting a module "thing". -- Nothing can be explained to a stone. Or to a stoned person, either. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user