Had ERROR mutliple times in different situations already, always within type-functions
calling other type-functions
I'll try to create an example later.
Sorry i have no smaller option currently
You can try current thinICE-version where i can repeat it.
then run, load any project into thinICE and type into a codefield a little bit-Function tControl_Codefield.AutoComplete() ' Line 2811 '... While ... Select Case bChar Case 32 Case 35, 36, 37 Case 44 Case 46 '. If Not bVariable Then If ... Then If ... Then Do Select Case Case 40 Case 41 Case Else If ... Then Exit Do EndIf End Select Loop ' Insert this "Else" before Line 2886 Else ' jumps in here without meeting conditions and an existing call to a type-function ' that is placed here results in Error-message as unknown variable ' Insert this "UI.StatusText("test",1)" which does for sure exist UI.StatusText("test",1) EndIf EndIf EndIf Case ... Case Else End Select Wend
even if you type no dot (CHR$(46)) you'll get an Error, Variable not defined or misspelled keyword.
Last edited by ReneMiner; 15-01-2016 at 18:32.
I think there are missing some Forum-sections as beta-testing and support
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Hi Eros,
the bracket matching is very handy, thanks! And the profiler is the best thing ever!!!
How does the "added experimental code indentation" work?
I did a minor typo pass on the documentation of 1.9.16.10:
- documentation for SHIFTN contains SHIFT (without N) in syntax and body
- #include contains "resolver" but should be "resolved"
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
Eros,
I think I found a bug in >>, it actually behaves like <<:
I added unit tests for the new functionality here:Uses "Console" Byte myByte_ApproachA = 8 Byte myByte_ApproachB = 8 PrintL "SHIFT RIGHT function" PrintL "--------------------" PrintBinary("Original value: ", myByte_ApproachA) SHIFT RIGHT myByte_ApproachA, 1 PrintBinary("Altered value: ", myByte_ApproachA, 4) PrintL PrintL ">> operator" PrintL "------------" PrintBinary("Original value: ", myByte_ApproachB) myByte_ApproachB = myByte_ApproachB >> 1 PrintBinary("Altered value: ", myByte_ApproachB, 4) WaitKey Function PrintBinary(prefix As String, nValue As Byte, Optional expectedValue As Byte) String binaryPattern = Bin$(nValue, 8) Print prefix If Function_CParams = 3 Then PrintL binaryPattern In IIf(nValue = expectedValue, 10, 12) Else PrintL binaryPattern In 15 End If End Function
https://github.com/ErosOlmi/ThinBASI...rators.tBasicU (one passing, one failing)
https://github.com/ErosOlmi/ThinBASI...ShiftN.tBasicU (both passing)
Petr
Last edited by Petr Schreiber; 16-01-2016 at 02:36.
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
Thanks a lot, I will fix asap.
Yesterday evening I installed latest Windows 10 preview build 11099 and almost destroyed everything in my PC that was inside user configuration paths: desktop, personal data, mail setup, browser setup, ...
My data was backuped so no problem but almost every program as no configuration and I need to redo configs.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Hi Eros,
thanks for the warning. I guess I will get Windows 10 no sooner than with new PC, the horror stories I hear from all the sides are scaring me a lot
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
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Aha!,
so it is syntax aware indenting, to fix wrongly formatted sources - very handy!
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
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Updated thinBasic 1.9.16.10.
Fixed typo
Fixed bit shifting
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Bookmarks