[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Adjusting Displaced Arrays
- To: greek@DEC-HUDSON@THINK.ARPA, common-lisp@su-ai
- Subject: Adjusting Displaced Arrays
- From: Guy Steele <gls@THINK.ARPA>
- Date: Wed, 12 Jun 1985 16:24:00 -0000
- Cc: gls@THINK.ARPA
- In-reply-to: The message of 12 Jun 85 09:29-EDT from greek at DEC-HUDSON at think
Date: Wed, 12 Jun 85 09:29:57 EDT
2. Moon stated that adjusting an array never affect the target array.
Assuming my point #1 is correct, then the target array is affected
if a) it is specified in the :DISPLACED-TO option, and b) the
:INITIAL-ELEMENT option is also specified.
If I'm incorrect here, then I think that implies that the new array
has to share some element with the original target array and also
have some of its own!
The problem here is vague language in the manual under ADJUST-ARRAY.
Under MAKE-ARRAY, it says in more than one place that :INITIAL-ELEMENT
and :DISPLACED-TO may not be used together. This restriction should
apply to ADJUST-ARRAY also. The language under ADJUST-ARRAY is misleading
in a number of respects about how :INITIAL-ELEMENT and :DISPLACED-TO are