From: "Panicz Maciej Godek" <godek.maciek@gmail.com>
To: guile-user@gnu.org
Subject: Guile module system problem
Date: Tue, 20 Jan 2009 11:18:28 +0100 [thread overview]
Message-ID: <1eb53f5d0901200218n227d2db0le7f511bf7f8fbf57@mail.gmail.com> (raw)
Hi, I've been trying to move some of my code into
loadable guile modules. I made a directory "modules"
in my project tree and moved the module in there.
I ran into some problems. Here's how I load the
module:
(set! %load-path (cons "." %load-path))
(load-module (modules goose))
At this point, guile signals an error (unbound variable).
Here's how the module looks like:
(define-module (modules goose)
:use-module (oop goops)
:replace (slot-ref))
(define slot-ref (make-procedure-with-setter slot-ref slot-set!))
And at this point guile complains that slot-ref is unbound.
I've been trying several combinations, like inserting
(use-modules (oop goops)) before the redefinition,
but the error seems to be imvunerable to this.
Regards
M
next reply other threads:[~2009-01-20 10:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-20 10:18 Panicz Maciej Godek [this message]
2009-01-20 12:15 ` Guile module system problem Neil Jerram
2009-01-20 13:07 ` Panicz Maciej Godek
2009-01-20 16:52 ` Panicz Maciej Godek
2009-01-21 16:55 ` Ludovic Courtès
2009-01-21 17:51 ` Panicz Maciej Godek
2009-02-05 22:18 ` Neil Jerram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1eb53f5d0901200218n227d2db0le7f511bf7f8fbf57@mail.gmail.com \
--to=godek.maciek@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).