Now, lets say Y was a struct, then yeah it can work.
In theory, it can work with either (the compiler could just insert the function call to alloc+construct), but it won't in D since we don't have implicit construction.
Now, lets say Y was a struct, then yeah it can work.
In theory, it can work with either (the compiler could just insert the function call to alloc+construct), but it won't in D since we don't have implicit construction.