Change representation of dynamic arrays?

Jascha Wetzel firstname at mainia.de
Sat Oct 20 03:48:30 PDT 2007


Walter Bright wrote:
> Janice Caron wrote:
>> That said, someone posted that you always allocate an extra byte. If
>> that's true, problem solved.
> 
> Yes, an extra byte is allocated for just this reason.

couldn't the end pointer just point to the last element?
iteration could use <=
the length would be end-start+1
etc.



More information about the Digitalmars-d mailing list