Forum: Editorial
References: UPGRADED-ARRAY-ELEMENT-TYPE, MAKE-ARRAY
Category: CLARIFICATION/CHANGE
Edit history: 2004-07-20, Version 1 by Bruno Haible
Status: For CLiki consideration
Modify the semantics of UPGRADED-ARRAY-ELEMENT-TYPE so that its behavior on the type NIL (or any equivalent type) is unspecified. In particular, it need not be the case that (UPGRADED-ARRAY-ELEMENT-TYPE NIL) must be a subtype of (UPGRADED-ARRAY-ELEMENT-TYPE foo) for any type foo.
These arrays are useless, and requiring them prevents an implementation from having certain efficient representations of strings.
The "Cost to Implementors" cannot be "None" as there are implementations that do not support arrays with element type NIL.
"Cost to implementors" usually means the cost of adopting the proposed change. Since this proposal would make the definition of such arrays have undefined behavior, how would this cause work for developers of a (non-conforming!) implementation that does not currently support them?
I stand corrected. However, while it is true that making the proposed change would not require work by implementors not supporting the feature, I'd wager that there may still be some issues lurking when the implementors have to "fix" UPGRADED-ARRAY-ELEMENT-TYPE.
This page is linked from: Proposed ANSI Revisions and Clarifications
CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively