unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Module reflection and the list of bound symbols
@ 2012-09-28 17:37 Panicz Maciej Godek
  2012-09-29  5:28 ` Thien-Thi Nguyen
  2012-09-30 13:21 ` Ian Price
  0 siblings, 2 replies; 4+ messages in thread
From: Panicz Maciej Godek @ 2012-09-28 17:37 UTC (permalink / raw)
  To: guile-user

Hello,
In guile there seem to be many ways of querying whether
a certain symbol is bound in a given module/environment,
like `defined?', `module-symbol-binding', `module-variable'
etc.

On the other hand, there is no way (or I haven't found one)
to list the bound symbols explicitly. It seems tempting to
have a reflection function `module-symbols' or `environment-symbols'
that would return the names of bound symbols,
or to have functions like environment->list or module->list that
would return assoc lists mapping symbols to their values.

I've been wondering whether the lack of such functions
is deliberate, or if there's a chance that they could be added
some time in the future.
(Or maybe I just overlooked something, and they are already
available?)

Yours,
Maciek



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

end of thread, other threads:[~2012-09-30 16:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-28 17:37 Module reflection and the list of bound symbols Panicz Maciej Godek
2012-09-29  5:28 ` Thien-Thi Nguyen
2012-09-30 13:21 ` Ian Price
2012-09-30 16:21   ` David Pirotte

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