[Vm-dev] Re: adding external plugins to Squeak 4.2 on the Mac
bert at freudenbergs.de
Mon Jul 18 15:14:57 UTC 2011
On 17.07.2011, at 11:57, Craig Latta wrote:
> Hi John (and Esteban :) --
> Cool, that was it! I'm embarrassed I'd forgotten about that. I
> still have no idea what the release Mac VM binary has for VM_PROXY_MAJOR
> and VM_PROXY_MINOR, though, I just removed the check entirely from my
> plugin. :)
> So... clearly there should be some way for plugin authors to be
> able to check those values on a VM that someone else built?
Just declare the minimal version your plugin expects. It is *right* that the VM will refuse to load a plugin that needs a newer interface. Similary, the plugin should not try to run on a VM that is missing functions the plugin needs.
I don't remember if the check is in the VM or the Plugin or both, but that's the way it's supposed to work.
Of course, there should be some meaningful error reporting if versions don't agree.
- Bert -
> command-line argument, perhaps? I didn't see one mentioned by running
> the VM with -help, but I guess I'll check the sources now, to be sure...
> at any rate it should be mentioned in the help message.
> Sorry if I'm duplicating any previous discussion.
> thanks again,
> Craig Latta
> +31 6 2757 7177
> + 1 415 287 3547
More information about the Vm-dev