🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Hideki Watanabe Wed, 08 Oct 1986 00:54
Bug in fillarray of Franz Lisp? (In English)
#1695
Author: Hideki Watanabe
Date: Wed, 08 Oct 1986 00:54
35 lines
1627 bytes
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
Re: Bug in fillarray of Franz Lisp? (In English)
#1703
Author: Deb Jackson
Date: Tue, 14 Oct 1986 13:02
15 lines
1173 bytes
In article <166@tsuku.tsukuba.junet> watanabe@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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads