[Submission] D Slices

Ali Çehreli acehreli at yahoo.com
Tue May 31 13:14:59 PDT 2011


On 05/31/2011 12:38 PM, eles wrote:

 > What if, on a
 > microcontroller, the last element of the array is simply the highest
 > addressable memory location? (like the "end of the world") Why
 > introducing something completely inconsistent with the array (namely,
 > someting "just after the last element") to characterize something
 > that should be regarded as... self-contained? What if such a concept
 > (data after the last element of the array) is simply nonsense on some
 > architecture?

As Andrei also said elsewhere on this thread, it's not possible in the 
C++ language. I would expect the D spec to require that the address of 
the one-past-the-end element to be valid.

Ali



More information about the Digitalmars-d mailing list