Project

General

Profile

Actions

Bug #474

open

End is treated as Exit when inside a procedure!

Added by Brian Flanagan about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Target version:
-
Start date:
09/10/2020
Due date:
% Done:

0%

Estimated time:
1:00 h
Affected version:

Description

This bug has been around for quite some time.

I reported it before but could not find it on aozmine, so I added it again.

Example:

Print "Done"
End

Procedure DO_Stuff
    Print "test"
    End
    Print "test2"
End Proc```

Result:

test
Done

The "Done" should never be seen, since execution 
should have stopped in the middle of the procedure.
Actions #1

Updated by Brian Flanagan about 4 years ago

Looking at the generated code, I see that End is incorrectly being translated as a return from the procedure!

Actions #2

Updated by Brian Flanagan about 4 years ago

  • Priority changed from Normal to High
Actions #3

Updated by Brian Flanagan about 4 years ago

  • Estimated time set to 1:00 h
Actions #4

Updated by Francois Lionet about 4 years ago

  • Status changed from New to Resolved

Finally fixed!

Actions

Also available in: Atom PDF