[Implemented] Modulo
i was not refering to the chained hasselhof but to the code that's brewing!
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
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!
well purebasic is not the first basic dialect to use % for modulo, so that one is not an issue, but the ^ is indeed missing... and standards... it's pure, not standardbasic 

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
i'm just dreaming: the IN statement
and 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
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
is't that 'function' instead of command?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
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