it is may be No Bug, because
Pi here is defined in the Math Module and will print 3.14159265358979323USES "Math" USES "CONSOLE" print Pi waitkey
But:
will print 3.14159265358979323USES "CONSOLE" double Pi = 3.14159265358979323 print Pi waitkey
Hi Eros,
just to report that this error message is inconsistent :
when you forget USES "CONSOLE"
you get a useful message : Unknown Keyword SUGGESTION: consider adding the following line in your code: USES "CONSOLE" (err code 18)
but if you forget USES "MATH"
you get : Variable not defined or misspelled Keyword (err code 30)
this last err message is confusing.
Last edited by DirectuX; 28-10-2019 at 10:36. Reason: disable smiley for " code 18) "
ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64
it is may be No Bug, because
Pi here is defined in the Math Module and will print 3.14159265358979323USES "Math" USES "CONSOLE" print Pi waitkey
But:
will print 3.14159265358979323USES "CONSOLE" double Pi = 3.14159265358979323 print Pi waitkey
Hi Primo,
I didn't mean a bug, just that the error message given by thinBasic is leading to confusion.
ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64
Hi Primo,
I investigated the issue - it seems that in general none of the symbols from Math module is recognised.
It would be definitely nice to have it fixed.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Bookmarks