unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Panicz Maciej Godek" <godek.maciek@gmail.com>
To: "Neil Jerram" <neiljerram@googlemail.com>
Cc: guile-user@gnu.org
Subject: Re: Guile module system problem
Date: Tue, 20 Jan 2009 14:07:33 +0100	[thread overview]
Message-ID: <1eb53f5d0901200507v39639fbq1577f53b143b08a3@mail.gmail.com> (raw)
In-Reply-To: <49dd78620901200415w2b013eeiff6062136f0f07de@mail.gmail.com>

>> 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).
>
> Please try `use-modules' instead of `load-module'.

Well, I actually did that, I just made a mistake retyping
the code to the e-mail.

Eventually I have found the reason for this weird behavior:
since the slot-ref is present in the module's replace list,
it doesn't get exported from the goops module.

The solution is to refer to the goops's slot-ref function
in some other way (perhaps using the @ operator)

Thanks
M.




  reply	other threads:[~2009-01-20 13:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-20 10:18 Guile module system problem Panicz Maciej Godek
2009-01-20 12:15 ` Neil Jerram
2009-01-20 13:07   ` Panicz Maciej Godek [this message]
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=1eb53f5d0901200507v39639fbq1577f53b143b08a3@mail.gmail.com \
    --to=godek.maciek@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=neiljerram@googlemail.com \
    /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).