bug-guile
[Top][All Lists]
Advanced

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

procedure-documentation does not work for procedures which exported from


From: rk
Subject: procedure-documentation does not work for procedures which exported from module
Date: Wed, 27 Dec 2006 12:53:55 +0600
User-agent: No Gnus v0.6 on Emacs/22.0.91.1 (i486-pc-linux-gnu)

I have a module with procedure with documentation:
--------------------------------------------------
(define-module (chg))

(export any->string)

(define (any->string any)
  "Convert any type to string"
  (cond
   ((symbol? any)
    (symbol->string any))
   ((string? any)
    any)))
--------------------------------------------------


But (procedure-documentation) returns #f when I try to get
documentation for procedure (any->string) in case I use module chg:
--------------------------------------------------
guile> (use-modules (chg))
guile> (procedure-documentation any->string)
#f
--------------------------------------------------


Eval in module env is not work also:
--------------------------------------------------
guile> (eval '(procedure-documentation any->string) (resolve-module '(chg)))
#f
--------------------------------------------------


But if I use procedure-documentation on defined in the same
environment procedure, its works fine:
--------------------------------------------------
guile> (define (any->string any)
  "Convert any type to string"
  (cond
   ((symbol? any)
    (symbol->string any))
   ((string? any)
    any)))
guile> (procedure-documentation any->string)
"Convert any type to string"
--------------------------------------------------

So, its looks like procedure-documentation does not work for
procedures which exported from module.

It this a bug in Guile?  Or I'm wrong and I should write such code in
other way?




My configuration:
--------------------------------------------------
$ guile --version
Guile 1.6.8

$ cat /etc/debian_version 
4.0

$ dpkg -l '*guile*' | grep ^ii | awk '{print $2", "$3}'
guile-1.6, 1.6.8-6
guile-1.6-doc, 1.6.8-6
guile-1.6-libs, 1.6.8-6
guile-library, 0.1.2-1
libguile-ltdl-1, 1.6.8-6
--------------------------------------------------

-- 
Ruslan Kosolapov
Plesk QA Department Second Manager
SWsoft, Inc.




reply via email to

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