05-25-2024, 02:07 PM
As I wrote earlier in the topic here, the issue is a lack of operators between the number and the function.
Would any of the following make sense to anyone?
10 ABS(10)
10 SIN(10)
10 LOG(10)
10 _PRINTWIDTH("10")
If that first 10 is a line number, then.... they're all still wrong as ABS(10) does nothing by itself. It's not assigned as a value to a variable or array. It's not being sent into any function. It's just doing what exactly??
Now, if that 10 is supposed to be part of some math function, exactly what is the computer supossed to do? Automatic multiplication? I'm afraid that's not a syntax that BASIC recognizes.
All the above are errors, and are obvious errors which the IDE catches and flags for you.
10 NOT 10, is the exact same type of thing, but it currently slips past the built-in error catching. It's nothing more than a glitch that simply isn't caught and flagged by the IDE, which causes the g++ compiler to point it out once it gets to it instead.
There's no mystery as to what's going on here. It's just an error that g++ is catching instead of the qb64 IDE.
Would any of the following make sense to anyone?
10 ABS(10)
10 SIN(10)
10 LOG(10)
10 _PRINTWIDTH("10")
If that first 10 is a line number, then.... they're all still wrong as ABS(10) does nothing by itself. It's not assigned as a value to a variable or array. It's not being sent into any function. It's just doing what exactly??
Now, if that 10 is supposed to be part of some math function, exactly what is the computer supossed to do? Automatic multiplication? I'm afraid that's not a syntax that BASIC recognizes.
All the above are errors, and are obvious errors which the IDE catches and flags for you.
10 NOT 10, is the exact same type of thing, but it currently slips past the built-in error catching. It's nothing more than a glitch that simply isn't caught and flagged by the IDE, which causes the g++ compiler to point it out once it gets to it instead.
There's no mystery as to what's going on here. It's just an error that g++ is catching instead of the qb64 IDE.