|
|
last edited 8 years ago by test1 |
1 2 3 4 5 6 | ||
Editor: kratt6
Time: 2007/12/20 11:25:31 GMT-8 |
||
Note: more details |
added: )se ou tex off )se ou al on changed: - lv:$ := [LIST2VEC$Lisp l for l in ll] - CONS(eform MATRIX, LIST2VEC$Lisp lv)$Lisp lv:\$ := [LIST2VEC\$Lisp l for l in ll] CONS(eform MATRIX, LIST2VEC\$Lisp lv)\$Lisp
Empty one dimensional arrays are printed but no empty two dimensional array in console.
axiom)set output algebra on )set output tex off
axiomempty()$Vector(INT) (1) []
axiomempty()$Matrix(INT) (2)
axiom)set output algebra off )set output tex on
axiomempty()$Vector(INT)
![]() | (1) |
axiomempty()$Matrix(INT) >> System error: Cannot take first of an empty list
axiom)se ou tex off )se ou al on (matrix [[1,2]])::OUTFORM::SEX (4) (MATRIX . [[1,2]])
axiom(empty()$Matrix INT)::OUTFORM::SEX (5) (MATRIX . [])
I believe that this shows that the bug is in the boot display routines. In OUTFORM we find:
matrix ll == lv:$ := [LIST2VEC$Lisp l for l in ll] CONS(eform MATRIX, LIST2VEC$Lisp lv)$Lisp
axiommatrix [] >> Error detected within library code: new: arrays with zero rows are not supported
could be equivalent to empty()$Matrix INT
. On the other hand, the interpreter has no way to determine the type of this matrix, so the error is probably OK.
axiommatrix [[]] >> Error detected within library code: matrices with zero columns are not supported
does indeed not make any sense at all.