string types: const(char)[] and cstring

Marcin Kuszczak aarti at interia.pl
Sat May 26 11:25:16 PDT 2007


Derek Parnell wrote:

>> Under the new const/invariant/final regime, what are strings going to be
>> ? Experience with other languages suggest that strings should be
>> immutable.
> 
> We seem to have different experience. Most of the code I write deals with
> changing strings - in other words, manipulating strings is very very
> common in the sorts of programs I write.
> 

The same here. I don't have much experience with Java and really don't know
why const strings are so usefull... 

Maybe someone could elaborate a little bit more?

-- 
Regards
Marcin Kuszczak (Aarti_pl)
-------------------------------------
Ask me why I believe in Jesus - http://zapytaj.dlajezusa.pl (en/pl)
Doost (port of few Boost libraries) - http://www.dsource.org/projects/doost/
-------------------------------------




More information about the Digitalmars-d-announce mailing list