[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LISTARRAY



    Date: 28 January 1981 04:37-EST
    From: Kent M. Pitman <KMP at MIT-MC>
    Subject: Bugs in LISTARRAY with 2 args
    In a bare lisp,
     (SETQ A (*ARRAY NIL T 100)) => #T-100-70776
     (LISTARRAY A 1)             => NIL
[I think you meant to say "=> (NIL)" here]
     (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.)
Fixed, by editing sources and patching current LISP (version 2077)
LISTARRAY with 2nd arg of 0 now returns (); a negative 2nd arg has always
meant to list "all" elements.