Struct with default ctor (Was: [dmd-beta] dmd 2.064 beta take 2)

deadalnix deadalnix at gmail.com
Sat May 18 13:22:35 PDT 2013


On Saturday, 18 May 2013 at 20:19:11 UTC, Walter Bright wrote:
> On 5/18/2013 1:12 PM, deadalnix wrote:
>> I played with that. It ensure nothing, convey intent at best.
>
> Please file bug reports for any holes in it.

Many are, but I think that isn't the point we are discussing here.

Removing all holes in @disable this will require the same 
sacrifices at the ends than default constructor would. For 
isntance, what should happen in this case :

S[] ss;
ss.length = 42;

if S has @disable this ?


More information about the Digitalmars-d mailing list