Page 1 of 1
An inlcude should has the extension ".pbi"
Posted: Sun Nov 02, 2003 12:21 pm
by WolfgangS
Hi!
As i collected different include files for Purebasic, i noticed, it all has different extensions like .pbi, pbh, .h.pb and so on. I asked Fred about it and he told me whe should take the extension .pbi in future and he will also support it.
This is just for info.
MFG
WolfgangS
Posted: Sun Nov 02, 2003 6:15 pm
by Karbon
Ok, so when exactly should .pbi be used (and not used)?
Posted: Sun Nov 02, 2003 6:34 pm
by freak
> Ok, so when exactly should .pbi be used (and not used)?
Exactly my point. There is no difference between a pb and a pbi file, so why
not just stick with .pb ?
Timo
Posted: Sun Nov 02, 2003 7:03 pm
by fsw
freak wrote:> Ok, so when exactly should .pbi be used (and not used)?
Exactly my point. There is no difference between a pb and a pbi file, so why
not just stick with .pb ?
Timo
If you are saying that both are PureBasic source files, than you are right.
BUT:
The purpose was to destinguish between main.pb files and include.pbi files when you see the file name.
So if you have tons of files in a project dir you see exactly what kind of file it is.
An include file (normally) can't work alone, because (normally) you have only some constant/variable declaration and procedures that provide some functions for the main code.
(The statement above is only true if you don't have any other things in your include file)
If you use it (different extensions) is up to you - you don't have to.
As for different extensions: other languages have it too

Posted: Sun Nov 02, 2003 8:40 pm
by dmoc
I distinguish my "include" files using...
XIncludeFile "../include/blabla.bla"
...of course "blabla.bla" is up to you. I got fed up of multiple extensions.