chaos-lang / chaos

The Chaos Programming Language
https://chaos-lang.org
GNU General Public License v3.0
281 stars 17 forks source link

[crash] Lists vandalism. #62

Closed tankf33der closed 4 years ago

tankf33der commented 4 years ago
# ./chaos
    Chaos Language 0.0.1-alpha (Aug 14 2020 12:11:42)
    GCC version: 9.3.0 on linux
    Turn chaos into magic!

kaos> list a = [0]
kaos> list f = [1,2]
kaos> a
[0]
kaos> f
[1, 2]
kaos> a[f] = a
kaos> a
[[0]]
kaos> f
[1, 2]
kaos> print a
[[0]]
kaos> a[f] = a
kaos> a
[[[0]]]
kaos> f
[1, 2]
kaos> a[f] = a
kaos> a[f] = a
Segmentation fault
mertyildiran commented 4 years ago

@tankf33der fixed with https://github.com/chaos-lang/chaos/commit/85ac6674b55127f9668142dc60c6784f27682a20