[racket] introspecting names and versions of all planet packages used by a program
Matthew Flatt wrote at 12/14/2012 08:53 AM:
> At Thu, 13 Dec 2012 23:52:03 -0500, Neil Van Dyke wrote:
>
>> Can a program running in Racket VM introspect on itself to determine the
>> names and versions of PLaneT packages that the program uses?
>>
> You should be able traverse the import hierarchy using
> `module->imports', perhaps starting with an enclosing module's name as
> obtained by
>
> (variable-reference->module-path-index (#%variable-reference))
Thanks, Matthew.
Neil V.