Project

General

Profile

Actions

Bug #879

open

Gosub / Goto sometimes fails when numbered label referenced is the result of a calaulation starting with a number

Added by Brian Flanagan almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Target version:
Start date:
12/13/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Related to bug #399 (which has been resolved).

For example:

X=10
Gosub 10*X
Print "no error"
End

100 Print "test sub"
Return

The above code fails to transpile with t label not defined at line 2.

If, however, I start the equation with X, it works:

X=10
Gosub X*10
Print "no error"
End

100 Print "test sub"
Return
Actions

Also available in: Atom PDF