RFC: naming for FrontTransversal and Transversal ranges
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Apr 30 12:21:52 PDT 2009
Robert Jacques wrote:
> On Thu, 30 Apr 2009 14:40:42 -0400, Rainer Deyke <rainerd at eldwood.com>
> wrote:
>> In addition, there's this: suppose you have a struct containing a
>> (mutable) array. When you make a copy of that struct, you will almost
>> always want to make a copy of the contained array. Therefore value
>> semantics should be the default, because it simplifies the most common
>> use case.
>
> That's what struct ctors/dtors/opAssign are for. Personally, I think
> letting the struct designer decide the behaviour is better.
The problem is what to do for the containers in Phobos.
Andrei
More information about the Digitalmars-d
mailing list