www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Update an example on the website

reply biozic <dransic free.fr> writes:
In http://www.digitalmars.com/d/2.0/declaration.html#AutoDeclaration, 
shouldn't the code:
	auto s = "string"; // s is type immutable(char)[6]
be updated to:
	auto s = "string"; // s is type immutable(char)[]
?

bye
Nicolas
Mar 27 2010
parent Walter Bright <newshound1 digitalmars.com> writes:
biozic wrote:
 In http://www.digitalmars.com/d/2.0/declaration.html#AutoDeclaration, 
 shouldn't the code:
     auto s = "string"; // s is type immutable(char)[6]
 be updated to:
     auto s = "string"; // s is type immutable(char)[]
 ?
Yes, good catch!
Mar 27 2010