Posted: Wed Jan 25, 2006 3:27 pm
i was not refering to the chained hasselhof but to the code that's brewing!
http://www.purebasic.com
https://www.purebasic.fr/english/
I hate to bring up something as silly as a standard, but the ANSI/ISO standard for the BASIC programming language specifies ^ for exponentiation and MOD for modulo, so your wishes are not totally capricious. I second your vote for ^ and MOD.I also want ^ instead of Pow and Mod instead of %
And this is totally illogical, when you think on it. First swap a symbol for a keyword - but then swap a keyword for a symbol. We are so patterned!
Pow?In PB you have a logic:
- non ascii characters for binary operands: +, !, *, <<, % ...
- full letter keyword for logical operands: And, Or, XOr, possibly Not as well
So if PB had a function Add(), it would be considered a command and not an operand.Fred wrote:Pow() is a command, like Abs(). It's not a purebasic operand.
Code: Select all
If "test" In "this is a test" : Endif
Dim myArray.b(10)
For i=0 to 10
myArray(i)=Random(255)
Next
If 129 In myArray() : Endif
Exactly.chris319 wrote:So if PB had a function Add(), it would be considered a command and not an operand.
It will surely be used more than strictly neccessary, and that´s not good because it´s very slow.Flype wrote:i'm just dreaming: the IN statementand so on...Code: Select all
If "test" In "this is a test" : Endif Dim myArray.b(10) For i=0 to 10 myArray(i)=Random(255) Next If 129 In myArray() : Endif
Surely everything there will always take place as there is nothing happening between the If xxx and the EndIf in either case.If "test" In "this is a test" : Endif
Dim myArray.b(10)
For i=0 to 10
myArray(i)=Random(255)
Next
If 129 In myArray() : Endif