string types: const(char)[] and cstring
Bruno Medeiros
brunodomedeiros+spam at com.gmail
Sun Jun 3 03:06:01 PDT 2007
Walter Bright wrote:
> Derek Parnell wrote:
>> What is the syntax for an immutable array of mutable characters?
>
> There isn't one. Such a construct is appealing in the abstract, but I
> haven't run across a legitimate use for it yet.
What, there isn't one? Isn't that what final does? Like this:
final char[] charar = new char[](20);
charar[1] = 'x'; // Allowed
charar = new char[](20); // Not allowed
charar.length = 10; // Not allowed
--
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d-announce
mailing list