From: John Harrison <John.Harrison@cl.cam.ac.uk>
To: caml-list@inria.fr
Cc: John.Harrison@cl.cam.ac.uk
Subject: Listing toplevel bindings
Date: Mon, 25 Sep 2006 23:40:02 +0100 [thread overview]
Message-ID: <E1GRz7z-0007Tp-00@mta1.cl.cam.ac.uk> (raw)
When inside the OCaml toplevel, is there any way of getting a list
of all (top-level) bindings of names to objects of some specified
type 'a? For example, given the type ":int" it might return an
association list:
["x",1; "y",2; ...] : (string * int)list
I'd be happy to compile more stuff into the toplevel if it's needed
to make this possible.
John.
next reply other threads:[~2006-09-25 22:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-25 22:40 John Harrison [this message]
2006-09-26 8:01 oleg
2006-09-27 2:46 ` John Harrison
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1GRz7z-0007Tp-00@mta1.cl.cam.ac.uk \
--to=john.harrison@cl.cam.ac.uk \
--cc=caml-list@inria.fr \
/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