unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: source liu <sourceonly@gmail.com>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: get all available symbols in scheme
Date: Mon, 13 Jun 2016 21:22:15 +0200	[thread overview]
Message-ID: <CAMFYt2YnN2_j74f1HegfU_gU6k5xifKRpyHnVzWbc_oiQE+Egw@mail.gmail.com> (raw)
In-Reply-To: <CAAzVxgMFTTPLt9698dY89Z+1MKbd8_J9LyWusvtCZQ0q08=3YQ@mail.gmail.com>

I don't think it is a very portable solution, but you can use
"module-obarray" procedure that returns an appropriate hash table, for
example:

(hash-map->list cons (module-obarray (current-module)))

(You can use resolve-module with quoted module name for other modules)

Best regards,
Panicz


2016-06-13 20:38 GMT+02:00 source liu <sourceonly@gmail.com>:

> Hi,
>
> glad to join the list
>
> I wonder if there is some way to dump all available symbols in current
> enviroment(something like “dir” in python), i think it is very useful when
> you are trying new modules
>
> I have tried the guile reference guide as well as google,but cant find any
> clue
>
> Any suggestion?
>
> great thanks
>
>
> --
> Liu An
> Institution of modern physics, Shanghai, China
>


  reply	other threads:[~2016-06-13 19:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-13 18:38 get all available symbols in scheme source liu
2016-06-13 19:22 ` Panicz Maciej Godek [this message]
2016-06-13 21:46 ` Arne Babenhauserheide
2016-06-14  6:42   ` tomas
2016-06-15 17:57     ` Performance implications of having many methods? " Arne Babenhauserheide
2016-06-13 22:07 ` Taylan Ulrich Bayırlı/Kammer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMFYt2YnN2_j74f1HegfU_gU6k5xifKRpyHnVzWbc_oiQE+Egw@mail.gmail.com \
    --to=godek.maciek@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=sourceonly@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).