DMD 1.025 and 2.009 releases

Walter Bright newshound1 at digitalmars.com
Wed Jan 2 11:51:29 PST 2008


のしいか (noshiika) wrote:
> Walter Bright wrote:
>> のしいか (noshiika) wrote:
>>
>> Replace:
>>
>>>     const(C) c;
>>>     c = new C(1); // error
>>
>> with:
>>
>>     const(C) c = new C(1);
> 
> Oh, then, I have to declare a variable each time I want to assign a new
> value of const(class) object or a generic type, now...

Right. Just as if C were an int:

	const(int) i;
	i = 3;   // error

	const(int) i = 3;  // ok



More information about the Digitalmars-d-announce mailing list