compiler specific constant with the system slash

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

compiler specific constant with the system slash

Post by Lebostein »

A compiler specific constant with the system slash for path operations

#PB_System_Slash = "\" (Windows)
#PB_System_Slash = "/" (Mac OS, Linux)
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Requested API Structure and constants

Post by Danilo »

Lebostein wrote:A compiler specific constant with the system slash for path operations

#PB_System_Slash = "\" (Windows)
#PB_System_Slash = "/" (Mac OS, Linux)
Slash is '/' on all systems, and Backslash is '\' on all systems.
Maybe something like #PB_FileSystem_Delimiter would be a better name?
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Requested API Structure and constants

Post by luis »

@Lebostein

That would be a #PB_ constant, you better off asking for that in Features Request (even if you can declare it by yourself in 10 seconds using a CompilerIf).

This thread is for requesting Windows OS API constant and structures.
Fred wrote:... the missing WinAPI structures or constants which aren't predeclared in PureBasic ...
"Have you tried turning it off and on again ?"
A little PureBasic review
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Re: Requested API Structure and constants

Post by Lebostein »

luis wrote:That would be a #PB_ constant, you better off asking for that in Features Request (even if you can declare it by yourself in 10 seconds using a CompilerIf).
And why there constants like #True, #False, #Null or #PI? Even simple constants are useful...
luis wrote:This thread is for requesting Windows OS API constant and structures.
OK. Better rename the thread to "Requested API-Structure and -constants" or "Requested API Structure and API constants"
Post Reply