Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 IDE bug and an SNL moment...
#7
(11-12-2022, 03:22 AM)Pete Wrote: Actually, I have another one. Failure to capitalize.
:
Code: (Select All)
if a then elseĀ 

Pete
It's because if "THEN" part is to remain empty, it needs to be in a block "IF", that's what the "formatter" is expecting. In fact it should return an error for not having "END IF" at the end of it all, but it defeats itself because the whole thing is a single-line "IF" statement that it knows it should support back to GW-BASIC.

(11-12-2022, 03:09 AM)Pete Wrote: Try and type then press Enter...
Code: (Select All)
REDIM c$(1000): idx = UBOUND(c$) - _HEIGHT - 125
Likely this is the "formatter" thinking the first parameter for "UBOUND" should have parenthesis because it should be the name of an array but doesn't want any parenthesis, which makes it a PITA (wanted to say "special case" but writing a parser for any language is not easy and don't tell me using LISP to write it makes it easier!) So the "formatter" tries to put one for "_HEIGHT". Indeed this is the weirdest I've seen this slow editor doing. :/

BTW changed "UBOUND" to "LBOUND" and does the same thing. Changed "_HEIGHT" to "_WIDTH", no change. Added "(0)" to the end of "_HEIGHT" it didn't dare change it.
Reply


Messages In This Thread
QB64 IDE bug and an SNL moment... - by Pete - 11-12-2022, 03:09 AM
RE: QB64 IDE bug and an SNL moment... - by Pete - 11-12-2022, 03:22 AM
RE: QB64 IDE bug and an SNL moment... - by mnrvovrfc - 11-12-2022, 04:12 AM
RE: QB64 IDE bug and an SNL moment... - by Pete - 11-12-2022, 03:32 AM
RE: QB64 IDE bug and an SNL moment... - by Pete - 11-12-2022, 05:54 AM
RE: QB64 IDE bug and an SNL moment... - by jcm - 11-16-2022, 05:10 PM



Users browsing this thread: 1 Guest(s)