mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 00:40:26 +00:00
There's a blk of code that never runs in FUNCTION isvalidvariable
This is a commit just to show it's known that it's there. And that I was a coward to remove it. Maybe n was supposed to be LEN(a$)? Well, it's not. That breaks compilation. I'll just leave it there.
This commit is contained in:
parent
0724910a2e
commit
abe46ca87e
|
@ -19755,7 +19755,7 @@ FUNCTION isvalidvariable (a$)
|
|||
NEXT
|
||||
|
||||
isvalidvariable = 1
|
||||
IF i > n THEN EXIT FUNCTION
|
||||
IF i > n THEN EXIT FUNCTION 'i is always greater than n because n is undefined here. Why didn't I remove this line and the ones below it, which will never run? Cause I'm a coward. F.h.
|
||||
e$ = RIGHT$(a$, LEN(a$) - i - 1)
|
||||
IF e$ = "%%" OR e$ = "~%%" THEN EXIT FUNCTION
|
||||
IF e$ = "%" OR e$ = "~%" THEN EXIT FUNCTION
|
||||
|
|
Loading…
Reference in a new issue