[dmd-beta] dmd 2.064 beta take 2

Walter Bright walter at digitalmars.com
Fri May 17 13:25:51 PDT 2013


On 5/17/2013 12:54 AM, Don Clugston wrote:
> I think that the reason that having both an initializer and a constructor 
> appears desirable, is actually as a workaround for the lack of struct default 
> constructors.
> If we really need a solution for that, we should consider doing something like 
> allowing struct default constructors, but requiring them to be CTFEable.
>

I know there's regular pressure to add default constructors, but I strongly 
oppose this. D has a lot of nice features because of the .init property. Default 
constructors wreck that.


More information about the dmd-beta mailing list