Project

General

Profile

Actions

Bug #3

closed

Restore VARIABLE reports a syntax error

Added by Francois Lionet almost 5 years ago. Updated almost 5 years ago.

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

0%

Estimated time:
Affected version:

Related issues 1 (0 open1 closed)

Related to AOZ Studio V1 (TBD bugs clean/-> V2) - Bug #46: RESTORE causes internal errorClosedFrancois Lionet01/21/2020

Actions
Actions #1

Updated by Francois Lionet almost 5 years ago

  • Status changed from New to Resolved
Actions #2

Updated by Baptiste Pillot almost 5 years ago

  • Target version changed from 0.9.2.5 to 0.9.2.6
Actions #3

Updated by Baptiste Pillot almost 5 years ago

  • Affected version set to 0.9.2.5
Actions #4

Updated by Baptiste Pillot almost 5 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.

Actions #5

Updated by Brian Flanagan almost 5 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
Actions #6

Updated by Francois Lionet almost 5 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

Actions #8

Updated by Baptiste Pillot almost 5 years ago

  • Status changed from Resolved to Closed
Actions #9

Updated by Baptiste Pillot almost 5 years ago

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

Also available in: Atom PDF