chaos-lang / chaos

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

[state corruption] whole data type collapsed #65

Closed tankf33der closed 4 years ago

tankf33der commented 4 years ago

I cant create lists anymore.

# ./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> symbol_table
[start] =>
[end]
kaos> k[0] = 1
  Chaos Error:
    Module: /root/chaos/__interactive__.kaos
    Line: 2
    Undefined variable: k
    Absorbed by Interactive Shell
kaos> k
  Chaos Error:
    Module: /root/chaos/__interactive__.kaos
    Line: 1
    Undefined variable: k
    Absorbed by Interactive Shell
kaos>             k
  Chaos Error:
    Module: /root/chaos/__interactive__.kaos
    Line: 1
    Undefined variable: k
    Absorbed by Interactive Shell
kaos> k = 1
  Chaos Error:
    Module: /root/chaos/__interactive__.kaos
    Line: 1
    Undefined variable: k
    Absorbed by Interactive Shell
kaos> list k = [1,1,1,1]
kaos> k
[]
kaos> list a = [1,1,1,1]
kaos> a
[]
kaos> del k
kaos> del a
kaos> list b = [1,1,1,1]
kaos> b
[]
kaos> list c = [1,2,3]
kaos> c
[]
kaos> exit
# ./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 k = [1,1,1,1]
kaos> k
[1, 1, 1, 1]
kaos>
mertyildiran commented 4 years ago

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