unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Easiest way to set procedure-documentation?
@ 2013-08-09 18:06 Roland Orre
  2013-08-12 10:21 ` Roland Orre
  2013-09-07  9:42 ` Andy Wingo
  0 siblings, 2 replies; 5+ messages in thread
From: Roland Orre @ 2013-08-09 18:06 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

There is no simple way to set procedure-documentation in guile.
For some years I've done it in the module's scheme description like
(set-procedure-property! proc 'documentation  "help text")

but this is quite hard to maintain, and what seems to be the standard way
(looking at libguile)
is too complicated, so what I did was to redefine the SCM_DEFINE macro
and add a line for setting procedure doc from the included .x file as well.

But, as I can see there is no primitive for setting the procedure doc, only
reading it.
Is it safe to take the  procedure procedure-documentation
and modify the CAR where it expects the doc string to be found?

Of course I can do it by using set-procedure-property from C but I thought
there may be a more direct way.

[-- Attachment #2: Type: text/html, Size: 856 bytes --]

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

end of thread, other threads:[~2013-10-16 11:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-09 18:06 Easiest way to set procedure-documentation? Roland Orre
2013-08-12 10:21 ` Roland Orre
2013-08-12 10:24   ` Roland Orre
2013-09-07  9:42 ` Andy Wingo
2013-10-16 11:49   ` Roland Orre

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