kevinlawler / kona

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

@[x;0;1+] 1 and {@[x;0;y]}[1;1+] #559

Closed tavmem closed 4 years ago

tavmem commented 4 years ago

This issue was identified by adam.antonik@gmail.com

The expression
@[x;0;1+] 1
segfaults.
I'm not sure what x is supposed to be referring to here, 
changing x to 'a' produces a value error.  

However the slightly more sensible
{@[x;0;y]} [1;1+]
also dies. 
tavmem commented 4 years ago

After commit c8126994e680cf8e43e62b5b4826ca62021fb47f

kona      \ for help. \\ to exit.

  @[x;0;1+] 1
value error
x
^
parse error
> 
K 2.8 2000-10-10 Copyright (C) 1993-2000 Kx Systems 
\ for help. \\ to exit.

  @[x;0;1+] 1
value error
x
^
parse error
tavmem commented 4 years ago
kona      \ for help. \\ to exit.

  {@[x;0;y]}[1;1+]
syntax error
>
K 2.8 2000-10-10 Copyright (C) 1993-2000 Kx Systems
\ for help. \\ to exit.

  {@[x;0;y]} [1;1+]
syntax error
{@[x;0;y]} [1;1+]
           ^
parse error