Clever trick. But it is not quite what I wanted. I would rather
have a module keep track of it's own reference count instead of
each module referencing it to add a reference.
I do not think it is currently possible within modules for a module
to keep track of it's own reference count. The only way I think
it would be possible is to add two new commands to modules to reference
and unreference a module. The reference command would load a module if
it was not already loaded otherwise add a reference to the currently
loaded version. The unreference command would subtract a reference
from the currently loaded version and if the reference count goes to 0
remove it.
Right now I'm using your trick.
--
Robert Minsk Centropolis Effects, LLC.
eg...@ce... 10950 Washington Blvd., Studio B
Culver City, Ca. 90232-4025
|