|
|
last edited 9 years ago by test1 |
1 2 3 4 5 6 | ||
Editor: Bill Page
Time: 2008/09/01 12:23:09 GMT-7 |
||
Note: re: documentation |
added:
From BillPage Mon Sep 1 12:23:09 -0700 2008
From: Bill Page
Date: Mon, 01 Sep 2008 12:23:09 -0700
Subject: re: documentation
Message-ID: <20080901122309-0700@axiom-wiki.newsynthesis.org>
On Mon, Sep 1, 2008 at 4:27 PM, Tim Daly wrote
<blockquote>
In the documentation it states:
"Note that using the "#" operator on a list with cycles
causes Axiom to enter an infinte loop"
See:
http://axiom-developer.org/axiom-website/documentation.html
in Volume 0: Axiom Jenks and Sutor p41
</blockquote>
u:= [9,2,4,7]; concat! (u, [1,2,42]); end := rest(u,4); part:=rest(u,2); setrest!(end, part);
Asking for the number of elements of u will exhibit lisp-implementation-dependend behaviour, ranging from an error to an infinite loop.
We should either fix the documentation (saying, that this is the case), or check for circularity. This could be done by calling LIST_-LENGTH
instead of LENGTH
in ILIST
, for example.
According to the common lisp standard list-length returns nil if the list is circular.
http://www.lispworks.com/documentation/HyperSpec/Body/f_list_l.htm
In the documentation it states:"Note that using the "#" operator on a list with cycles causes Axiom to enter an infinte loop"
See: http://axiom-developer.org/axiom-website/documentation.html in Volume 0: Axiom Jenks and Sutor p41