unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* program-module returns a non-module
@ 2010-09-05  0:25 Jose A. Ortega Ruiz
  2010-09-05 10:28 ` Ludovic Courtès
  2010-09-06 11:58 ` Andy Wingo
  0 siblings, 2 replies; 4+ messages in thread
From: Jose A. Ortega Ruiz @ 2010-09-05  0:25 UTC (permalink / raw)
  To: guile-devel


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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-06 11:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-05  0:25 program-module returns a non-module Jose A. Ortega Ruiz
2010-09-05 10:28 ` Ludovic Courtès
2010-09-06 11:59   ` Andy Wingo
2010-09-06 11:58 ` Andy Wingo

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).