visible versioning scheme for UserLibraries

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

visible versioning scheme for UserLibraries

Post by mskuma »

There seems to no way to determine what PB version a UserLibrary is meant for. I'm sure many of you have picked up a UserLibrary, put it aside, then found it again wondering which version it was designed for. A UserLibrary is a file with no extension - quite naked - and has no identifiers or properties to indicate version. It would be nice if a property or at least an extension could be used to indicate which PB version it can be used with.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: visible versioning scheme for UserLibraries

Post by PB »

UserLibraries can have any filename, so I'd suggest the authors of them should
name them appropriately when releasing them (eg. MyLibrary_400). Of course
this means you can also rename them yourself if you like. ;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

It's a good idea, the only problem is of course - it's a totally manual process that's up to the developer or user to figure it out and add it. It would be far better if there was a hand-off process that automatically adds it, but it's a moot point, since there is no official lib builder. If it eventually becomes a bonafide compile-option (like dll etc), it would be great to have a version property in the builder tool, so the version info becomes part of the lib file itself, so it can readable later by some other tool or method. Maybe it's something that can be done in the tailbite program in the meantime (not sure, my speculation only - maybe there's an unused area in the lib that could be used as a comment or version info?).
naw
Enthusiast
Enthusiast
Posts: 573
Joined: Fri Apr 25, 2003 4:57 pm

Post by naw »

I'd like to have a Library navigator / report that lists the commands contained within each Library. It would be very handy to identify command-name conflicts.

Also, in PB, would be nice to be able to switch on/off libraries easily - perhaps even switch off specific commands in libraries.

Because these features dont exist - I try to avoid using any non-standard libraries.

My programs arent particularly sophisticated, so I can do pretty much everything I want with standard PB...
Ta - N
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

naw wrote:I'd like to have a Library navigator / report that lists the commands contained within each Library. It would be very handy to identify command-name conflicts.

Also, in PB, would be nice to be able to switch on/off libraries easily - perhaps even switch off specific commands in libraries.

Because these features dont exist - I try to avoid using any non-standard libraries.

My programs arent particularly sophisticated, so I can do pretty much everything I want with standard PB...
1/ about a navigator :
it's possible, i've done it for fun, not really finished but it works.
But yes it should be integrated to the IDE.

2/ about switching on/off :
it's possible by moving files from a directory to another and restarting the compiler. But yes it should be integrated to the IDE.

one day :P :?:
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Kiffi
Addict
Addict
Posts: 1486
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Post by Kiffi »

long time ago, ts-soft and i wrote a Tool for switching Userlibraries and
resident-files. if i understand you correctly, this tool may be usefull for you:

Image

the tool has also an english gui.

Download here

Greetings ... Kiffi
Last edited by Kiffi on Tue Sep 12, 2006 9:04 pm, edited 1 time in total.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

sorry but dead link :roll:
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

The posted link seems to be messed, try this:

http://www.tuebben.de/kiffi/downloads/ulrs.zip
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Kiffi
Addict
Addict
Posts: 1486
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Post by Kiffi »

Fluid Byte wrote:The posted link seems to be messed, try this:
yes, sorry, my **** downloadcounter is broken. I've corrected the link above.

Greetings ... Kiffi
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

that's really good kiffy - didn't know this one.

might be really one step better if you could include the parsing of the resident files. because in these files there are also really good stuff : constante, macro, interface and prototype. i have source code for that if you want.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

Kiffi wrote:long time ago, ts-soft and i wrote a Tool for switching Userlibraries and
resident-files. if i understand you correctly, this tool may be usefull for you:

Image

the tool has also an english gui.

Download here

Greetings ... Kiffi
Excellent!! 5 starts for you!!

This is exactly what i was looking for!!

Thanks!
Post Reply