string types: const(char)[] and cstring
Walter Bright
newshound1 at digitalmars.com
Sun May 27 12:14:29 PDT 2007
Derek Parnell wrote:
> const(char)[] // A mutable array of immutable characters?
> const(char[]) // An immutable array of mutable characters?
> const(const(char)[]) // An immutable array of immutable characters?
> char[] // A mutable array of mutable characters?
>
> What will happen with the .reverse and .sort array properties when used
> with const, invariant, and final qualifiers?
They'll all fail.
More information about the Digitalmars-d-announce
mailing list