|
From: | tantalum |
Subject: | Re: procedure docstrings / documentation |
Date: | Tue, 26 Sep 2017 09:32:36 +0000 |
User-agent: | Posteo Webmail |
it is available in procedure properties https://www.gnu.org/software/guile/manual/html_node/Procedure-Properties.htmli just noticed again that the procedure to get the arguments is undocumented.
Scheme Procedure: procedure-arguments proc Scheme Procedure: procedure-documentation procthere is another way with (system vm program) and program-arguments-alist, which also works with procedures
https://www.gnu.org/software/guile/manual/html_node/Compiled-Procedures.html it can also be useful to get the exports of a module https://www.gnu.org/software/guile/manual/html_node/Module-System-Reflection.htmlScheme Procedure: resolve-interface name [#:select=#f] [#:hide='()] [#:prefix=#f] [#:renamer=#f] [#:version=#f]
there are more module related procedures that can be found on the repl if readline is enabled by typing module- and pressing tab.
it is also possible to extract macro parameters from exported syntax transformer procedures.
On 2017-09-25 14:01, Christopher Howard wrote:
On Sun, 2017-09-24 at 00:47 +0000, tantalum wrote:* i don't repeat the procedure name and parameter names because that canĀ be queried at run-time or automatically extractedOn this particular point: how do you query the parameter names at run- time? Or do those have to be extracted from the source?
[Prev in Thread] | Current Thread | [Next in Thread] |