Ok thanks for that. `collapse-module-path' led me to `resolve-module-path' which takes a symbol and returns a full path, so I just used that to compare with the other path I already had.

On 07/26/2010 08:16 PM, Shriram Krishnamurthi wrote:
Funnily enough, I asked Matthew a similar question earlier this
evening.  Without permission, I quote his reply:

When do two module designators designate the same module?
Do you mean "the same for any installation" or "the same for the
current installation"?

For the former: normalize each module path using `collapse-module-path'
and compare the results using `equal?'.

For the latter: build a module path index using
`module-path-index-join', resolve it using `module-path-index-resolve',
and then compare the resolved paths using `eq?'.

_________________________________________________
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/users

Reply via email to