D Documentation  
Properties
Every array has the following properties:

array.length  // Number of elements in array
array.reverse // Reverse element order
array.sort    // Sort element order

array.ptr     // Return the pointer to the first element of array
array.dup     // Duplicate the array in new allocated memory

array.sizeof  // Gives specific information about it's size.


Example:
char[] textarray   = "  hallo Welt! !";
int l              = textarray.length;  // l == 11
char*  textpointer = textarray.dup;     // the new pointer now points to a duplicated string,
textpointer[2]     = 'H';               // change the string.
textarray[0..l-2]  = textpointer[2..l]; // move the string.
writefln(textarray);
Created using PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.