X3J11 Pleasanton meeting summary

Paul Kohlmiller paul at u02.svl.cdc.com
Wed Oct 10 04:49:22 AEST 1990


I want to thank Doug for that description of the over-indexed array problem. I
did not take as many notes as Doug did at that meeting but there are two more
points to be made in favor of the committee's decision and one in favor of
Dave P.'s position. First, my understanding of what Bill Plauger said is that
the compiler might be forced to fully pack a multidimensional array but it is
not forced to do the correct pointer arithmetic when array are overindexed.
Secondly, many people have pointed out that it is still possible to take the
address of the array and do some "naked" arithmetic on it. The problem with
overindexing is that it is "as if" the address was taken in a quite way.
I think Dave feels that the standard supports his position but that this 
kind of overindexing is needed to allow for (excuse me in advance for
introducing this word) polymorphic arrays. (Arrays that can change shape.)
I think the real solution for polymorphic arrays lies within NCEG's 
discussion of variable dimensioned arrays.

--
     // Paul H. Kohlmiller           //  "Cybers, Macs and Mips"         //
     // Control Data Corporation     // Internet: paul at u02.svl.cdc.com   //
     // All comments are strictly    // America Online: Paul CDC         //
     // my own.                      // Compuserve: 71170,2064           // 



More information about the Comp.std.c mailing list