Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array breaks after Push and Pop #170

Open
nonkit opened this issue Nov 25, 2020 · 0 comments
Open

Array breaks after Push and Pop #170

nonkit opened this issue Nov 25, 2020 · 0 comments
Labels
type/runtime Issues related to runtime engine

Comments

@nonkit
Copy link
Member

nonkit commented Nov 25, 2020

An array will break after Stack.PushValue() and Stack.PopValue(). #119 is a related issue. Sample code is:

e[1] = "one"
e[2] = "two"
e[3] = "three"
DumpE()
Stack.PushValue("local", e)
e = ""
e = Stack.PopValue("local")
DumpE()

Sub DumpE
  If Array.IsArray(e) Then
    For i = 1 To 3
      TextWindow.WriteLine("e[" + i + "]=" + e[i])
    EndFor
  Else
    TextWindow.WriteLine("e = " + e)
  EndIf
EndSub
@nonkit nonkit added the type/runtime Issues related to runtime engine label Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/runtime Issues related to runtime engine
Projects
None yet
Development

No branches or pull requests

1 participant