[racket] Get a list of provided definitions as list of symbols?
Hi all,
Is it possible to, after requiring a particular module, get a list of all
the definitions provided by that module?
For instance, can I do something like this?
> (module m racket
(provide (all-defined-out))
(define CONSTANT 42)
(define function (lambda (x) 'foo))
(struct banana (dna)))
> (require 'm)
> (all-defined-from 'm)
'(CONSTANT function banana)
I realize I could do this simply by defining all-defined-from-m inside my
module such that it returns a hard-coded list of symbols, but that's not a
general solution and wouldn't work if wanted the definitions from a module
I hadn't defined.
--
*SEE YOU SPACE COWBOY...*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140615/f219b197/attachment-0001.html>