[racket] introspecting names and versions of all planet packages used by a program

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Fri Dec 14 22:08:30 EST 2012

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.


Posted on the users mailing list.