kevinlawler / kona

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

wsfull using "where" #535

Closed tavmem closed 4 years ago

tavmem commented 5 years ago

In k2.8, an attempt to find an element in a mixed list (using "where") results in a "type error":

$ rlwrap -n ./k
K 2.8 2000-10-10 Copyright (C) 1993-2000 Kx Systems
Evaluation. Not for commercial use. 
\ for help. \\ to exit.

  & 1 = ( 1; (); "a")
type error
& 1 = ( 1; (); "a")
    ^
>  

But in kona, the result is "wsfull error":

$ rlwrap -n ./k
kona      \ for help. \\ to exit.

  & 1 = ( 1; (); "a")
wsfull error
& 1 = ( 1; (); "a")
    ^
> 
tavmem commented 5 years ago

The title of this issue is a bit misleading, as the use of "where" is incidental and extraneous to the problem. As the error message shows, the "type error" (and the "wsfull") occurs at "equals" (before "where" is encountered).

tavmem commented 4 years ago
K 2.8 2000-10-10 Copyright (C) 1993-2000 Kx Systems
\ for help. \\ to exit.

  1=(1;2;"a")
type error
1=(1;2;"a")
 ^
>
kona      \ for help. \\ to exit.

  1=(1;2;"a")
type error
1=(1;2;"a")
 ^
>