[Implemented] Introduce constants for every PB command!
Posted: Tue Jan 15, 2008 11:14 am
Hello!
I think it would be very nice, if there would be #PB_Constants for every command.
For example, the MessageRequester()*,** has its own constants, even Round()* got new constants.
But what about commands like ReplaceString()*? It's a bit annoying to look up everytime what 1 and 2 stands for (regarding the Mode-Parameter).
By in troducing constants, the coder still has the choice wether he/she uses them or not. Coders, who use constants (I even use #PB_MessageRequester_YesNoCancel all the time, although it's much to type) can increase the readability of their code; also people, who read codes from other programers, benefit from this.
Please, go through all commands and add constants for commands that I currently cannot remember. The onliest commands I've got in my mind are Sprite3DQuality()*, FlipBuffers()* and CompareMemoryString()*,**
P.S.: Maybe it is really time to create a new page in the manual containing a table showing which constant has got which value.
* ) This command should have constants for its parameters
**) This command should have constants for its returning values
I think it would be very nice, if there would be #PB_Constants for every command.
For example, the MessageRequester()*,** has its own constants, even Round()* got new constants.
But what about commands like ReplaceString()*? It's a bit annoying to look up everytime what 1 and 2 stands for (regarding the Mode-Parameter).
By in troducing constants, the coder still has the choice wether he/she uses them or not. Coders, who use constants (I even use #PB_MessageRequester_YesNoCancel all the time, although it's much to type) can increase the readability of their code; also people, who read codes from other programers, benefit from this.
Please, go through all commands and add constants for commands that I currently cannot remember. The onliest commands I've got in my mind are Sprite3DQuality()*, FlipBuffers()* and CompareMemoryString()*,**
P.S.: Maybe it is really time to create a new page in the manual containing a table showing which constant has got which value.
* ) This command should have constants for its parameters
**) This command should have constants for its returning values