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

Mehrdad wfunction at hotmail.com
Sun Dec 9 12:04:50 PST 2012


On Sunday, 9 December 2012 at 20:02:15 UTC, Mehrdad wrote:
> I never find the need to copy other objects...


Correction:

I _rarely_ find the need to copy other objects for _generic_ (er, 
templated) types (iterators being the exception I mentioned).

But obviously copying is essential for many concrete classes, 
e.g. vector. And I have never had the need for copying a vector 
to be "cheap" in any sense... in fact, I feel it _should_ be 
expensive, because of what it's doing. So it works out perfectly.


More information about the Digitalmars-d mailing list