Project

General

Profile

Bug #3

Restore VARIABLE reports a syntax error

Added by Francois Lionet over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
01/17/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Related issues

Related to AOZ Studio Beta - Bug #46: RESTORE causes internal errorClosed01/21/2020Francois Lionet

Actions
#1

Updated by Francois Lionet over 4 years ago

  • Status changed from New to Resolved
#2

Updated by Baptiste Pillot over 4 years ago

  • Target version changed from 0.9.2.5 to 0.9.2.6
#3

Updated by Baptiste Pillot over 4 years ago

  • Affected version set to 0.9.2.5
#4

Updated by Baptiste Pillot about 4 years ago

  • Status changed from Resolved to Feedback

In order that I can test it, could you please write a little piece of code that would be a "unit test" for this error ?
Thanks.

#5

Updated by Brian Flanagan about 4 years ago

This was a problem in previous versions. (I reported this in 0.9.2.4.)
This appears to be fixed in the newest version (0.9.3.1).

Example: (The results are as expected, even inside a procedure.)

Print "Main Program:"
P=2
Restore(P)
Read X,Y,Z
Print X,Y,Z

Print "In Procedure:"
Proc InsideProc
End

1 Data 1,2,3
2 Data 4,5,6
3 Data 7,8,9

Procedure InsideProc
    Q=5

    Restore(Q)
    Read A,B,C
    Print A,B,C

4 Data 0,1,2
5 Data 3,4,5
6 Data 7,8,9

End Proc

I also tried using just the variable name (without the parentheses). This also now works.

Example:

Restore P
Restore Q
#6

Updated by Francois Lionet about 4 years ago

  • Status changed from Feedback to Resolved
  • Target version changed from 0.9.2.6 to 0.9.3.2

Should be fixed in 9.3.2

#8

Updated by Baptiste Pillot about 4 years ago

  • Status changed from Resolved to Closed
#9

Updated by Baptiste Pillot about 4 years ago

  • Related to Bug #46: RESTORE causes internal error added

Also available in: Atom PDF