string literals

downs default_357-line at yahoo.de
Wed Jan 23 12:16:28 PST 2008


Saaa wrote:
> Can somebody please explain to me why char arrays are a special case of 
> arrays?
> 
> (when is this useful?) 
> 
> 

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".

 --downs


More information about the Digitalmars-d-learn mailing list