Optional or Declared User Libs

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Optional or Declared User Libs

Post by Dare2 »

Would it be possible for PB to optionally load user libs?

My thinking goes like this:
  • User libs are stored anywhere. The lib, associated residents and associated help all in the one folder.

    Programs could have a special compiler directive, say:

    Code: Select all

    CompilerUse "pathqualifier\libname"
    (or whatever is a good directive word) and that lib is then used.

    Anything stored in the "standard" user library area is handled as per current setup.
This would reduce clutter in the "Pure" folders; Make initial lib evaluation, acceptance and elimination a little easier (I'm lax); Provide an additional degree of latitude in project organisation; And possible also help reduce naming conflicts.

I would love this and see no harm in it, as anyone preferring to use the existing method could just drop their chosen libs in the existing folders.
@}--`--,-- A rose by any other name ..
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post by dontmailme »

Yes!

I like this idea.... especially for somebody like me who doesn't document very well.... it's so easy to forget which libs you have used in a program.

This would document the libs used by default, which would be very nice ;)

Go on, put it in :)
Paid up PB User !
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Or also maybe a 'Collect for Distribution' command in the editor which copies all the used user libs into a folder called 'User Libraries' into the project folder where the source is located.
--Kale

Image
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

I would give a lung for either of these features! Especially the first :D
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

we'll give you both features, now any specific words on that stone? :twisted:
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply