Project

General

Profile

Bug #879

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

Added by Brian Flanagan 7 months ago. Updated 3 months 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
#1

Updated by Francois Lionet 3 months ago

  • Status changed from New to Resolved

Fixed!

Also available in: Atom PDF