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...*
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to