Author Topic: Const difference between dev 1.5 and stable 1.4  (Read 1870 times)

0 Members and 1 Guest are viewing this topic.

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
Re: Const difference between dev 1.5 and stable 1.4
« Reply #15 on: February 05, 2021, 04:42:22 pm »
Thanks Fellippe, I can confirm it works again as expected.
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
Re: Const difference between dev 1.5 and stable 1.4
« Reply #16 on: February 06, 2021, 11:51:09 am »
Uhh, now scientific notation is not highlighted correctly (did it before??) and adding a type suffix makes it invalid at all.
Code: QB64: [Select]
  1. a# = 1.2345E+5#
  2.  
  3. a# = 1.2345D+5#
  4.  

Funny enough, the highligter here does it at least for E exponents :)

As side note for @FellippeHeitor, I'am already working on the latest Github issue related to DATAs and type suffixes. As I made the &B additions last year, I'm still familiar with the invoked libqb functions. So you'll see a pull request soon.
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

FellippeHeitor

  • Guest
Re: Const difference between dev 1.5 and stable 1.4
« Reply #17 on: February 06, 2021, 11:54:18 am »
Great news about DATA, Rho! Thank you so much for looking into it.

Now for sci-notation... oh well, here I go again! 😅

FellippeHeitor

  • Guest
Re: Const difference between dev 1.5 and stable 1.4
« Reply #18 on: February 06, 2021, 03:25:14 pm »
@RhoSigma I've fixed the highlighter (again) to deal properly with scientific notation. However this:

Code: QB64: [Select]
  1. a# = 1.2345E+5#

That is, using type symbols after scientific notation, will remain illegal. Since the E and D are already there to imply precision, as per the wiki:

Quote
E denotes SINGLE precision accuracy and D denotes DOUBLE precision accuracy in Qbasic. D and E are part of the number.
http://www.qb64.org/wiki/Scientific_notation

And since it was illegal in QB4.5 too, it makes no sense to try to make it valid right now.

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
Re: Const difference between dev 1.5 and stable 1.4
« Reply #19 on: February 06, 2021, 05:14:38 pm »
However this:
Code: QB64: [Select]
  1. a# = 1.2345E+5#
That is, using type symbols after scientific notation, will remain illegal. Since the E and D are already there to imply precision, ....
Yep, that makes sense.

... And since it was illegal in QB4.5 too, it makes no sense to try to make it valid right now.
Guess that's acceptable too then.

BTW - Did you actually push the fix, can't see any new commit at Github, most recent is 14 hours ago.
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

FellippeHeitor

  • Guest
Re: Const difference between dev 1.5 and stable 1.4
« Reply #20 on: February 06, 2021, 05:15:39 pm »
I'm working on a separate branch during the day and merging at night, this is today's: https://github.com/QB64Team/qb64/commits/IdeTweaks