DMD 1.025 and 2.009 releases

Walter Bright newshound1 at digitalmars.com
Tue Jan 1 13:29:56 PST 2008


Jarrett Billingsley wrote:
> Solve:
> 
> const(C) c;
> 
> if(someCondition)
>     c = new C(1);
> else
>     c = new C(2); 

C cx;
if (someCondition)
	cx = new C(1);
else
	cx = new C(2);
const(C) c = cx;



More information about the Digitalmars-d-announce mailing list