Ownership and Borrowing in D

Walter Bright newshound2 at digitalmars.com
Sat Jul 20 21:56:50 UTC 2019


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.


More information about the Digitalmars-d-announce mailing list