[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

program-module returns a non-module

From: Jose A. Ortega Ruiz
Subject: program-module returns a non-module
Date: Sun, 05 Sep 2010 02:25:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)


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?

Ignorance more frequently begets confidence than does knowledge
  - Charles Darwin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]