Page 1 of 1

Add simple version string for any lib !?

Posted: Fri Aug 05, 2005 12:49 am
by va!n
as you may know sometimes there will be released a new fixed lib out on the purebasic sites and its nice to see a lot of people writing own 3rd part libs for this nice language! Some original and 3rd part libs will be updated/fixed from time to time. if you download and install any original beta/fixed lib or any new updated 3rd part lib, do you really know what version of each lib you have installed and still using??

sorry, i dont really know this for all my libs!! I dont want that fred change once again the lib format to add a version info for each lib! So i thought about and have a small clean way, how everybody (fred and any 3rd part lib coder) can solve this problem on a very easy way!!

What do you think about adding a keyword (command) beginning with "version_", followed by the lib-filename!? It would be very important to use the real name of the filename! (for example think about all the font commands available in two libs called: Font and FontExtension !!!

<b>For example:</b>

CommandSet: Font
Lib_Filename: Font
Get_LibVersion: result$ = Version_Font()

CommandSet: Font
Lib_Filename: FontExtension
Get_LibVersion: result$ = Version_FontExtension()

You only have to call the version command (beginning for each lib with "Version_" and followed by the real filename and end up with () !!!! So it would be for everybody very easy to check the version of a specific lib and without changing the lib format!!!!

The "Version_ ...." command just return a string where the author can store the version up to 80 chars for example (or unlimited!?) like:

"v3.94 beta4 - by Fred (02-August-2005)"

Its just an idea... what do you think about?