Page 1 of 1

compiler specific constant with the system slash

Posted: Fri Sep 05, 2014 11:13 am
by Lebostein
A compiler specific constant with the system slash for path operations

#PB_System_Slash = "\" (Windows)
#PB_System_Slash = "/" (Mac OS, Linux)

Re: Requested API Structure and constants

Posted: Fri Sep 05, 2014 11:59 am
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?

Re: Requested API Structure and constants

Posted: Fri Sep 05, 2014 12:03 pm
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 ...

Re: Requested API Structure and constants

Posted: Fri Sep 05, 2014 2:49 pm
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"