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
alias immutable(char)[] string
There should be an empty array based on this empty string. But then, what is this empty array?
Any ideas?
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
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.
string
immutable(char)[]
, D, . , D D.