string types: const(char)[] and cstring

Anders F Björklund afb at algonet.se
Sun May 27 02:34:39 PDT 2007


Bill Baxter wrote:

>> 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?
> 
> Ditto here.  When I've used java I found it more annoying that strings 
> were immutable than anything else.

When using Java (and Objective-C), I've found it very useful that 
strings (and others) are immutable since they are then thread-safe.

--anders



More information about the Digitalmars-d-announce mailing list