Libraries

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by naw.

Hi,

How about commands to Include / Exclude Libraries (even though PB doesnt include unused Libs in the executable) it would make dependencies very clear and also to be able to exclude libraries would be useful for libraries that use duplicate command names.
The default behaviour (of including all libraries) should remain - these commands would simply modify that behaviour...

- syntax might be:

;Includes Only Maths and String / String2 Libraries
ExcludeLib All ; Excludes All User Libraries
IncludeLib Maths String String2 ; Includes 3 Libraries

;Excludes just Maths Library
ExcludeLib Maths


Ta - N
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> How about commands to Include / Exclude Libraries

I don't think this can be done... from what I can tell, all libraries
are loaded when PureBasic starts, so excluding some would be impossible.
Is that right, Fred?


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

It's true.

Fred - AlphaSND
Post Reply