[Import-sig] Importing Question...

Chris Withers chrisw@nipltd.com
Wed, 05 Jul 2000 14:03:54 +0100


...an odd topic for the import-sig ;-)

I'm building a system which needs to maintain a load different versions
of modules (probably in memory, better solutions would be welcomed ;-)
and import the appropriate version for the work it's currently trying to
do. (this is in a client-server environment and I'm talking about the
client)

I'm currently going to do this by the server providing a dictionary
mapping module name to md5-hash-of-code (read version ;-) and the client
comparing this with a similar dictionary of what it currently has
loaded. If the two don't match, the client either (re)loads it from it's
local cache or asks the server for new code.

This is done by hacky-import-from-string type things right now. It would
also be nice to have the server's list automatically generated rather
than the user having to specify it when they write the code to be
exported to the client...

Can imputil help here? If so, how do I learn how to use it?

cheers,

Chris