* procedure-documentation does not work for procedures which exported from module
@ 2006-12-27 6:53 rk
2006-12-27 19:58 ` Kevin Ryde
0 siblings, 1 reply; 2+ messages in thread
From: rk @ 2006-12-27 6:53 UTC (permalink / raw)
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.
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: procedure-documentation does not work for procedures which exported from module
2006-12-27 6:53 procedure-documentation does not work for procedures which exported from module rk
@ 2006-12-27 19:58 ` Kevin Ryde
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Ryde @ 2006-12-27 19:58 UTC (permalink / raw)
Cc: bug-guile
rk@plesk.ru writes:
>
> It this a bug in Guile? Or I'm wrong and I should write such code in
> other way?
It looks right, and it works for me with the same debian guile (on
i386).
You don't have a different version of your module lurking in the
search path? You can put a print in %load-hook (see the manual) to
check that. You can also try
(procedure-source any->string)
to see if it's what you expect.
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-27 19:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-27 6:53 procedure-documentation does not work for procedures which exported from module rk
2006-12-27 19:58 ` Kevin Ryde
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).