kevinlawler / kona

Open-source implementation of the K programming language
ISC License
1.36k stars 138 forks source link

Evaluation order bug? #538

Closed bakul closed 5 years ago

bakul commented 5 years ago

This used to work in kona (tested on a 6 year old version).... Also works in k3.

  +[a+2;a:3]
8

Now it gives an error:

  +[a+2;a:3]
value error
a
^
parse error
tavmem commented 5 years ago

This was broken by the fix to issue #482 done on Sep 1, 2017.

bakul commented 5 years ago

Thanks! While this specific issue is fixed, looks the root cause is not.

  (a;a:2)
value error
a
^
parse error

It should return 2 2