From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: tantalum Newsgroups: gmane.lisp.guile.user Subject: Re: procedure docstrings / documentation Date: Tue, 26 Sep 2017 09:32:36 +0000 Message-ID: References: <1e719937c33feae1fae7137a88d880a1@posteo.de> <1506348089.2190.6.camel@qlfiles.net> Reply-To: Guile user NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1506418419 22911 195.159.176.226 (26 Sep 2017 09:33:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2017 09:33:39 +0000 (UTC) User-Agent: Posteo Webmail To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 26 11:33:33 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwmF6-0005Jx-Io for guile-user@m.gmane.org; Tue, 26 Sep 2017 11:33:28 +0200 Original-Received: from localhost ([::1]:46356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwmFE-0005ta-0C for guile-user@m.gmane.org; Tue, 26 Sep 2017 05:33:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwmEY-0005nt-1y for guile-user@gnu.org; Tue, 26 Sep 2017 05:32:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwmEU-0004Ne-Qh for guile-user@gnu.org; Tue, 26 Sep 2017 05:32:54 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:55795) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dwmEU-0004Ke-Kc for guile-user@gnu.org; Tue, 26 Sep 2017 05:32:50 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2496820A47 for ; Tue, 26 Sep 2017 11:32:39 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3y1bMp5JR9z10HX for ; Tue, 26 Sep 2017 11:32:36 +0200 (CEST) Mail-Reply-To: Guile user In-Reply-To: <1506348089.2190.6.camel@qlfiles.net> X-Sender: sph@posteo.eu X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.66 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14185 Archived-At: it is available in procedure properties https://www.gnu.org/software/guile/manual/html_node/Procedure-Properties.ht= ml i just noticed again that the procedure to get the arguments is=20 undocumented. Scheme Procedure: procedure-arguments proc Scheme Procedure: procedure-documentation proc there is another way with (system vm program) and=20 program-arguments-alist, which also works with procedures https://www.gnu.org/software/guile/manual/html_node/Compiled-Procedures.htm= l it can also be useful to get the exports of a module https://www.gnu.org/software/guile/manual/html_node/Module-System-Reflectio= n.html Scheme Procedure: resolve-interface name [#:select=3D#f] [#:hide=3D'()]= =20 [#:prefix=3D#f] [#:renamer=3D#f] [#:version=3D#f] there are more module related procedures that can be found on the repl=20 if readline is enabled by typing module- and pressing tab. it is also possible to extract macro parameters from exported syntax=20 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=C2=A0 >> be queried at run-time or automatically extracted >>=20 >=20 > On this particular point: how do you query the parameter names at run- > time? Or do those have to be extracted from the source?