Empty line in programming language D

What is an empty string in the D programming language?

String is an array of characters ( http://dlang.org/arrays.html#strings )
Perhaps:alias immutable(char)[] string

There should be an empty array based on this empty string. But then, what is this empty array?

Any ideas?

+3
source share
2 answers

any (non-static) array is essentially a structure with a pointer to the beginning of the memory block in which the array is located, and the length

empty array has length == 0

+8
source

Empty string- an empty array. This is an empty type array immutable(char)[]. An empty array is an array with a length of 0. I do not understand what is hard to understand about this.

, D, . , D D.

+5

All Articles