Improvement that Everybody Will Agree With: Versioning

new topic     » topic index » view thread      » older message » newer message

I'd like to have a built-in procedure to track version numbers. It would work
like this:

In your program or library, you would put this line:

-- I track my versions by date, release, and patch
-- It's probably overkill, but I like it and it's very easy to use.
-- for example, 2007.01.12-1.0
addVersionData( "myLib.e", 2007, 1, 12, 1, 0 )
-- addVersionData( filename, year, month, day, release, patch )

This just adds to a global list managed by the interpreter. Then, you can
do something like this:

r = {2007,1,12,2,1}
v = getVersionData( "myLib.e" )
if versionSerial(v) >= versionSerial(r) then -- or some similar functionality
   -- good to go
else
   -- warn
end if

Also need

v = getVersionData( "" ) -- returns version data for all current items

so I can loop through them if necessary.

No, I could not do this myself, so I'll contribute to a monetary fund for
developers to do...

Hey, that's another good idea! Let's start a fund and assign bounties to
items that have gotten the green light for implementation. I've seen the
idea of bounties somewhere else... sounds good for getting things done.

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu