Review of DIP49

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Feb 2 16:53:30 PST 2014


On 2/2/14, 4:28 PM, Timon Gehr wrote:
> The main drawback of copy-construction with regard to postblit is that
> (potentially less efficient?) boilerplate is required to copy all fields
> over manually, which I think was what motivated the concept.

A bit of history: indeed that was the motivation back in the day, but at 
that point in time D's introspection abilities were just emerging. We 
simply didn't anticipate that D (as it is today) makes is trivially easy 
to write a function that initializes all fields of an object from another.

Andrei


More information about the Digitalmars-d mailing list