Module Version Numbers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Module Version Numbers

Ron Teitelbaum
 
Hi All,

I had a discussion about plugin version numbers on reddit.
http://programming.reddit.com/info/2s4eh/comments/c2t32y?context=5 .

What do people think about adding version numbers to plugins like
LargeIntegersPlugin class>>moduleNameAndVersion.  

Is this something we should be encouraging or do people really not see the
benefit?

Thanks,

Ron Teitelbaum


Reply | Threaded
Open this post in threaded view
|

Re: Module Version Numbers

David T. Lewis
 
On Mon, Sep 24, 2007 at 05:16:17PM -0400, Ron Teitelbaum wrote:
>  
> What do people think about adding version numbers to plugins like
> LargeIntegersPlugin class>>moduleNameAndVersion.  
>
> Is this something we should be encouraging or do people really not see the
> benefit?

For the plugins that I maintain, I use #primitiveVersionString and
#primitiveModuleName to enable the loaded plugin to identify itself.
On the class side, I use #versionString to identify the version at
compile time, along with the existing class method #moduleName to
identify the module. I've been using this convention for quite a while,
and it works well for tracking the version of the plugin source as well
as providing a mechanism to test the version level of whatever module
got loaded at runtime.

The implementation of #moduleNameAndVersion in LargeIntegersPlugin looks
quite reasonable, and I'd be happy to support that as a convention also.

Dave

Reply | Threaded
Open this post in threaded view
|

Re: Module Version Numbers

timrowledge
 
I'd say that adding a prim to plugins for this would be fine as long  
as it returns the same info as provided for Smalltalk  
listLoadedPlugins etc. I'd hate to see info-skew confusing people.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Original Sin is hard to find, but the digitally enhanced version is  
readily available.