string literals

downs default_357-line at yahoo.de
Wed Jan 23 13:28:33 PST 2008


Saaa wrote:
> I meant why are they read only?
> 
>> I don't understand what you mean with "special case". Character arrays 
>> (a.k.a. strings) are arrays just like the rest of 'em :)
>>
>> The only difference is that they have an additional literal constructor in 
>> the form of "foo".
> Where can I read about this?
> 

http://digitalmars.com/d/1.0/arrays.html#strings

 --downs


More information about the Digitalmars-d-learn mailing list