Next: , Previous: , Up: k9: Manual  


18 Errors

Given the terse syntax of k9, it likely won’t be a surprise that error messages are also rather short. The errors are listed on the help page and described in more detail below.

error: class rank length
type domain limit
stack parse value

18.1 :class

Calling a function on mismatched types.

 3+`b
:class

18.2 :rank

Calling a function with too many parameters.

 {x+y}[1;2;3]
{x+y}[1;2;3]
^
:rank

18.3 :length

Operations on unequal length lists that require equal length.

 (1 2 3)+(4 5)
:length

18.4 :type

Calling a function with an unsupported variable type.

`a+`b
  ^
:type

18.5 :domain

Exhausted the number of input values

 -12?10   / only 10 unique value exist
:domain

18.6 :limit

Exceeded a limit above the software maximum, eg. writing a single file above 1GB.

 n:_100e6;d:+`x`y!(!n;n?1.);`d 2:d
n:_100e6;d:+`x`y!(!n;n?1.);`d 2:d

:limit

18.7 :nyi

Running code that is not yet implemented. This may come from running code in this document with a different version of k9.

2020.05.31 (c) shakti

 =+`a`b!(1 2;1 3)
a b| 
- -|-
1 1|0
2 3|1

Aug 6 2020 16GB (c) shakti

 =+`a`b!(1 2;1 3)
=+`a`b!(1 2;1 3)
^
:nyi

18.8 :parse

Syntax is wrong. This may be due to mismatched parentheses or brackets, e.g., (), {}, [], "".

 {37 . "hello"
:parse

18.9 :value

Undefined variable is used.

 g    / assuming 'g' has not be defining in this session
:value

Next: Examples, Previous: Temporal Functions, Up: k9: Manual