[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bugs in LISTARRAY with 2 args
- To: (BUG LISP) at MIT-MC
- Subject: Bugs in LISTARRAY with 2 args
- From: KMP at MIT-MC (Kent M. Pitman)
- Date: Wed, 28 Jan 81 09:37:00 GMT
- Original-date: 28 JAN 1981 0437-EST
In a bare lisp,
(SETQ A (*ARRAY NIL T 100)) => #T-100-70776
(LISTARRAY A 1) => NIL
(LISTARRAY A 0) => MPV;LISTA1>>HRRZ B,@A(C) B/ 0 530157/ ??
In a new bare lisp,
(SETQ A (*ARRAY NIL 'FIXNUM 100)) => #T-100-70776
(LISTARRAY A 1) => (0)
(LISTARRAY A 0) => (100)
Both of these behaviors seem a bit silly. I would like VERY much if
(LISTARRAY array n) for n=0 returned NIL. It is otherwise much less useful
than it might be. (n=-1 seems to get the whole array.)
-kmp