[dmd-beta] dmd 2.064 beta take 2

Andrei Alexandrescu andrei at erdani.com
Wed May 15 07:39:04 PDT 2013


On 5/15/13 10:01 AM, Don Clugston wrote:
> I think the new behaviour is a misfeature, and nothing more. It makes no
> sense to store a value in each struct, when the value is exactly the
> same every time.

Consider:

struct A
{
   const int x = 7;
   this(int y) { x = y; }
}


Andrei


More information about the dmd-beta mailing list