IncludeByExpression

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

IncludeByExpression

Post by Hroudtwolf »

Hi,

Just a little wish, again.
I think, it were very useful to have an include-keyword for including purebasic sources by regular expressions.

In Example like this:

Code: Select all

IncludeByExpression "/vObject_(.*)\.pb$/"
In my example would be all files included which starts with "vObjects_" and ends with ".pb".

Best regards

Wolf
User avatar
IceSoft
Addict
Addict
Posts: 1683
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: IncludeByExpression

Post by IceSoft »

Hroudtwolf wrote:Hi,
In my example would be all files included which starts with "vObjects_" and ends with ".pb".
Best regards
Wolf
@Wolf,
1.April is not this week ;-)

However, why you not write a 'Precompiler' Tool which change your IncludeByExpression line with the correct XIncludeFile lines?
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

Hey,

My wish concerns an integration of such feature in pb.
A possible preprecessor isn't up for discussion.
Either this feature will be integrated or not. It's just my wish. ;-)

Best regards

Wolf
Post Reply