0

BrightScript eval() function not behaving as expected...

Code:

Sub Main()
    aa = {}
    print type(aa)

    aa = eval("{}")
    print type(aa)

    eval("aa = {}")
    print type(aa)
End Sub

Output:

roAssociativeArray

roList

roAssociativeArray

Question:

Shouldn't all three of these output roAssociativeArray?




autorun.brs

2 comments

  • 0
    Avatar
    Lyndon

    What player and what firmware are you getting this error on? I ran this in a test environment and it came back with associative array. 

  • 0
    Avatar
    Justin Papez

    I am using a XD1230 with 4.7.122

Please sign in to leave a comment.