unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: "Jose A. Ortega Ruiz" <jao@gnu.org>
To: guile-devel@gnu.org
Subject: program-module returns a non-module
Date: Sun, 05 Sep 2010 02:25:52 +0200	[thread overview]
Message-ID: <87occdujcf.fsf@newton.homeunix.net> (raw)


Hi,

When called on a program (procedure object) implemented in C,
program-module returns something that is not a module:

  (define cp (module-ref (current-module) 'cons))

  (program? cp) => #t
  (program-module cp) => #<pointer 0xb77ccbb0>
  (module? (program-module cp)) => #f

Since `cp' above is a program, i was expecting the return value to be
always a module: is that a wrong expectation or is this a bug?

Cheers,
jao
-- 
Ignorance more frequently begets confidence than does knowledge
  - Charles Darwin




             reply	other threads:[~2010-09-05  0:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-05  0:25 Jose A. Ortega Ruiz [this message]
2010-09-05 10:28 ` program-module returns a non-module Ludovic Courtès
2010-09-06 11:59   ` Andy Wingo
2010-09-06 11:58 ` Andy Wingo

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=87occdujcf.fsf@newton.homeunix.net \
    --to=jao@gnu.org \
    --cc=guile-devel@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).