[Chicken-users] array-lib : empty arrays advertise indices that they cannot be indexed by

2007-10-04 Thread Terrence Brannon
Re: http://www.call-with-current-continuation.org/eggs/array-lib.html We read: (make-array []) will construct an empty array, not a rank 0 array. Such arrays cannot be used with any setter or getter. However, property queries will work, and they can be used as a PROTOTYPE. So I have several quest

Re: [Chicken-users] array-lib : empty arrays advertise indices that they cannot be indexed by

2007-10-06 Thread Kon Lovett
On Oct 4, 2007, at 2:59 AM, Terrence Brannon wrote: Re: http://www.call-with-current-continuation.org/eggs/array-lib.html We read: (make-array []) will construct an empty array, not a rank 0 array. Such arrays cannot be used with any setter or getter. However, property queries will work, and t

Re: [Chicken-users] array-lib : empty arrays advertise indices that they cannot be indexed by

2007-10-06 Thread John Cowan
Kon Lovett scripsit: > However, the 'for-each' procedure (and its' various siblings) should > ignore an empty array. This is fixed in the 2.114 release. But a zero-rank array (in languages that support it, like Common Lisp) is not empty; it has one element (it is a scalar), which can be retriev

Re: [Chicken-users] array-lib : empty arrays advertise indices that they cannot be indexed by

2007-10-07 Thread Kon Lovett
On Oct 6, 2007, at 7:53 PM, John Cowan wrote: Kon Lovett scripsit: However, the 'for-each' procedure (and its' various siblings) should ignore an empty array. This is fixed in the 2.114 release. But a zero-rank array (in languages that support it, like Common Lisp) is not empty; it has one