Why allow initializers of non-static members that allocate?

Bastiaan Veelo Bastiaan at Veelo.net
Sat Jun 11 13:11:32 UTC 2022


On Saturday, 11 June 2022 at 10:52:58 UTC, Mike Parker wrote:
> I agree with your initial assessment that it should be an 
> error. It really only makes sense to allow the dynamic 
> allocation if the fields are immutable and, in the case of 
> arrays, the initializer is a literal.

👍


More information about the Digitalmars-d-learn mailing list