From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: Module reflection and the list of bound symbols Date: Sat, 29 Sep 2012 07:28:31 +0200 Message-ID: <87obkpv1mo.fsf@zigzag.favinet> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1348896506 6588 80.91.229.3 (29 Sep 2012 05:28:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2012 05:28:26 +0000 (UTC) Cc: guile-user@gnu.org To: Panicz Maciej Godek Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Sep 29 07:28:32 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1THpbM-0007Oj-0c for guile-user@m.gmane.org; Sat, 29 Sep 2012 07:28:32 +0200 Original-Received: from localhost ([::1]:38826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THpbG-0007yo-Gp for guile-user@m.gmane.org; Sat, 29 Sep 2012 01:28:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THpbC-0007yW-F6 for guile-user@gnu.org; Sat, 29 Sep 2012 01:28:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THpbB-0004DC-BW for guile-user@gnu.org; Sat, 29 Sep 2012 01:28:22 -0400 Original-Received: from smtp207.alice.it ([82.57.200.103]:35136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THpbB-0004D1-08 for guile-user@gnu.org; Sat, 29 Sep 2012 01:28:21 -0400 Original-Received: from zigzag.favinet (95.245.66.103) by smtp207.alice.it (8.6.023.02) id 5046970003CBB861; Sat, 29 Sep 2012 07:28:18 +0200 Original-Received: from ttn by zigzag.favinet with local (Exim 4.72) (envelope-from ) id 1THpbX-0003Ds-P4; Sat, 29 Sep 2012 07:28:43 +0200 In-Reply-To: (Panicz Maciej Godek's message of "Fri, 28 Sep 2012 19:37:17 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.103 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9598 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Panicz Maciej Godek () Fri, 28 Sep 2012 19:37:17 +0200 (Or maybe I just overlooked something, and they are already available?) Check out =E2=80=98(ice-9 session) apropos=E2=80=99 to see what it does. I= n Guile 1.4, one of its subroutines: (define apropos-fold-exported (make-fold-modules root-modules submodules (lambda (fob) (fob-info fob #:public-interface)))) uses =E2=80=98fob-info ... #:public-interface=E2=80=99, which was the resul= t of long past (but still memorably pleasant) "separation of concerns" hacking (see ). Anyway, the important bit is that "public-interface" derives from the procedure =E2=80=98module-public-interface=E2=80=99, present in other Guile= versions. Probably you want to explore the ancestor of =E2=80=98fob-info ... #:obarra= y=E2=80=99, instead, to access the full set of bindings (not just public), but i didn't mention that because the code that uses it in Guile 1.4 =E2=80=98(ic= e-9 session)=E2=80=99 is long and the Guile module system is somewhat of a rats= nest [insert maniacal laughter, here :-D]... Same thinking applies, however. =2D-=20 Thien-Thi Nguyen ..................................... GPG key: 4C807502 . NB: ttn at glug dot org is not me . . (and has not been since 2007 or so) . . ACCEPT NO SUBSTITUTES . ........... please send technical questions to mailing lists ........... --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlBmhwIACgkQZwMiJEyAdQLFAQCdGAR8nsit7PWEkLRA9pTGhla5 St4An2iJdzXW5EMerc36eW8F1hGUIcz0 =yChH -----END PGP SIGNATURE----- --=-=-=--