Script Versions/Revisions
-
How do script writers manage script versions? Is there generally accepted numbering system?
-
I've adopted the sketchup protocol of implementing a method called version_number in your main Module. I use a format of majorversion.minorversion{a-z}
The letters being patches / bug fixes to minor versions.
Adam
-
I typically leave a comment in the script to its version.
At Smustard, we have grandiose plans for implementing common structures and runtime reports for information such as this, but have not done so yet.
This could be achieved by the script registering it's information at runtime (a "push" method, of sorts, like we all do for $loaded_files) or a script could implement a method where it could be queried for it's information (a "pull" method - with neither "push" nor "pull" suggesting an appropriate name - just used as an illustration).
Like Progressbar, if we come up with something at Smustard, it could be used by all.
Todd
Advertisement