SeedV / SeedLang

An embeddable and visualizable scripting engine for .Net and Unity.
https://seedv.github.io/SeedLang/
Apache License 2.0
9 stars 1 forks source link

Implement multiple-dimension array access notification #204

Closed codingpotato closed 2 years ago

codingpotato commented 2 years ago

Fix #189

Run following code in SeedLang.Shell to see the notifications.

a = [1, 2, 3]
print(a)  # [1, 2, 3]

a[1] = [1, 2, 3]
print(a)  # [1, [1, 2, 3], 3]

a[1][1] = [1, 2, 3]
print(a)  # [1, [1, [1, 2, 3], 3], 3]

a[1][1][1] = 5
print(a)  # [1, [1, [1, 5, 3], 3], 3]