What is a way to determine if an external plugin has been loaded? Couldn't find this on the swiki.
I see that the plugin has make'd and copied to the proper system dir along with the other plugins. But, my one primitive fails (which doesn't do much). I'm assuming that the plugin hasn't loaded (there is no initialization but I'm using Slang)
brad
Am 11.11.2005 um 21:41 schrieb Brad Fuller:
What is a way to determine if an external plugin has been loaded? Couldn't find this on the swiki.
Smalltalk listLoadedModules
I see that the plugin has make'd and copied to the proper system dir along with the other plugins. But, my one primitive fails (which doesn't do much). I'm assuming that the plugin hasn't loaded (there is no initialization but I'm using Slang)
Modules are loaded only on demand, not at start up.
- Bert -
Bert Freudenberg wrote:
Am 11.11.2005 um 21:41 schrieb Brad Fuller:
What is a way to determine if an external plugin has been loaded? Couldn't find this on the swiki.
Smalltalk listLoadedModules
Better to write a primitive which never fails. Not only do you know it's been loaded, you can also put version information into it.
Cheers, - Andreas
On 11-Nov-05, at 8:17 PM, Andreas Raab wrote:
Bert Freudenberg wrote:
Am 11.11.2005 um 21:41 schrieb Brad Fuller:
What is a way to determine if an external plugin has been loaded? Couldn't find this on the swiki.
Smalltalk listLoadedModules
Better to write a primitive which never fails. Not only do you know it's been loaded, you can also put version information into it.
No need; the module name that you will get back from Smalltalk listLoadedModules can include version info. See implementors of #moduleNameAndVersion and in particular the LargeIntegersPlugin version. Of course, you will pay the cost of getting all the info for all loaded plugins when using this. In some cases it may be important to find a plugin version quickly and then an extra prim in the plugin is possibly useful. However I don't think I would suggest following the bizarre usage of LargeIntegersPlugin>primGetModuleName and primCheckIfCModuleExists
tim
vm-dev@lists.squeakfoundation.org