Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug in fillarray of Franz Lisp? (In English)

3 views
Skip to first unread message

Hideki Watanabe

unread,
Oct 7, 1986, 8:54:40 PM10/7/86
to
There seems to be something wrong with our Franz Lisp (on VAX-11/750 under
4.2BSD). Fillarray of negligent of its task. A sample session follows:

% lisp
Franz Lisp, Opus 38.79
-> (array ill t 3 3)
array[9]
-> (fillarray 'ill '(0))
nil
-> (ill 1 1)
0
-> (ill 2 2)
0
-> (ill 2 3)
nil
-> (ill 3 3)
nil
-> ^D
Goodbye
%

That is, elements (ill 1 1) thru (ill 2 2) are zeroed, but (ill 2 3) thru
(ill 3 3) are not. When I tried with (array ill t 5 5), (ill 1 1) thru
(ill 4 4) were zeroed but (ill 4 5) thru (ill 5 5) are not.
Possibly parameters to fillarray may be wrong, since the manual says
(fillarray 's_array 'l-itms) returns s_array. But how can 'ill evaluate
to nil in the above example?

Is your fillarray ok?

If you know how to fix or avoid this, please help.
Thanks in advance.
Hideki Watanabe
Programming Language Lab.
University of Tsukuba

Deb Jackson

unread,
Oct 14, 1986, 9:02:42 AM10/14/86
to
In article <1...@tsuku.tsukuba.junet> wata...@tsuku.tsukuba.junet (Hideki Watanabe) writes:
>There seems to be something wrong with our Franz Lisp...filarray

>That is, elements (ill 1 1) thru (ill 2 2) are zeroed, but (ill 2 3) thru
>(ill 3 3) are not.

This is not a bug...arrays start at element (0,0). The array element in
a three dimensional array are then:
(0,0) (0,1) (0,2)
(1,0) (1,1) (1,2)
(2,0) (2,1) (2,2)

-> (good luck)
t
-> (deb)
unbound variable

0 new messages