Why isn't the array lenght property an lvalue?

Steven Schveighoffer schveiguy at yahoo.com
Mon Apr 7 14:32:55 PDT 2014


On Mon, 07 Apr 2014 17:18:09 -0400, MrSmith <mrsmith33 at yandex.ru> wrote:

> Cool! So, it is not a property function but actual size_t? How would it  
> grow then?

The array slice structure is a length followed by a pointer, your  
structure was a pointer followed by a length.

It still is a property function to set the length.

-Steve


More information about the Digitalmars-d mailing list