[Cuis-dev] VectorGrahicsPlugin Troubles (WAS: Re: A few tweaks to preferences)

Juan Vuletich juan at jvuletich.org
Sat Aug 21 12:00:13 PDT 2021


On 8/21/2021 3:35 PM, Gerald Klix via Cuis-dev wrote:
> Dave,
>
> please look below.
>
> On 8/21/21 8:10 PM, David T. Lewis via Cuis-dev wrote:
>> ...
>> One suggestion - consider adding some kind of #primitivePluginVersion
>> to VectorEnginePlugin, possibly just answering an integer. If the
>> VectorGraphics version requires a compatible plugin version, you
>> can test for it in advance from the image.
> I can remember that I asked that question, too. I was pointed to:
> VectorEngineWithPlugin>>#pluginApiVersion
>
> --- snip ---
> pluginApiVersion
>     "
>     VectorEngineWithPlugin isPluginAvailable
>     Semantic version numbering in a single SmallInteger:
>     Version numbers 1 to 99 are backwards compatible. When 
> incompatibility is needed. jump straight to 101.
>     Version numbers 101 to 199 are backwards compatible. When 
> incompatibility is needed. jump straight to 201.
>     And so.
>     Note: this is Api version, not package version. If no Api change, 
> Api version doesn't change, regardless of changes in the Plugin or 
> Smalltalk code.
>     See senders and implementors.
>     "
> <primitive: 'pluginApiVersion' module: 'VectorEnginePlugin'>
>
>     ^ 0
> --- snap ---
> The clever semantic version scheme is not used, yet.>

Right. Maybe I'd remove it from the comment. The simple number equality 
for compatibility seems enough.

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich



More information about the Cuis-dev mailing list