string types: const(char)[] and cstring

Walter Bright newshound1 at digitalmars.com
Sat May 26 00:22:49 PDT 2007


Bill Baxter wrote:
> 'const string' automatically applies const to both the char and the [], 
> right?

Right.

> Is that something to be worried about?

If you want to reassign another value, yes. I suggest:

	const(char)[]

instead.



More information about the Digitalmars-d-announce mailing list