string types: const(char)[] and cstring

Derek Parnell derek at psych.ward
Sun May 27 16:05:47 PDT 2007


On Sun, 27 May 2007 12:14:29 -0700, Walter Bright wrote:

> 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?


Any comment on the above?


>> What will happen with the .reverse and .sort array properties when used
>> with const, invariant, and final qualifiers?
> 
> They'll all fail.

Good, but when? At run time or compile time?

-- 
Derek Parnell
Melbourne, Australia
"Justice for David Hicks!"
skype: derek.j.parnell



More information about the Digitalmars-d-announce mailing list