Ownership and Borrowing in D

12345swordy alexanderheistermann at gmail.com
Sun Jul 21 21:09:03 UTC 2019


On Saturday, 20 July 2019 at 21:56:50 UTC, Walter Bright wrote:
> On 7/20/2019 5:42 AM, Sebastiaan Koppe wrote:
>> Anyway my question is whether the ownership and borrowing 
>> semantics ever gets applied to non-pointers?
>
> Currently, no. The programmer would be expected to include the 
> correct copyctor/opAssign/destructors which would take care of 
> it.
>
> We're likely going to add a move constructor, too.

Make sure that it is a separate pull request from the dip, as c++ 
std::string binding is currently block by the lack of this.


More information about the Digitalmars-d-announce mailing list