Time to kill T() as (sometimes) working T.init alias ?

Walter Bright newshound2 at digitalmars.com
Thu Nov 29 19:27:56 PST 2012


On 11/29/2012 11:10 PM, Jonathan M Davis wrote:
>  [...]

You're right, I had overlooked the point that having no default 
constructor means that the default construction will *always* succeed. 
This is a large simplification.

Frankly, non-trivial default construction has always smelled like a bad 
practice to me, though it's not always obvious why.


More information about the Digitalmars-d mailing list