DIP1000: Scoped Pointers

Walter Bright via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Aug 11 15:07:57 PDT 2016


On 8/11/2016 12:59 PM, Joseph Rushton Wakeling wrote:
> There's a use-case that relates to some of our discussions together in another
> context, about structs or classes that borrow data via ref:

The scheme does not implement borrowing. References to internal data should be 
returned via 'return ref' or 'return scope', where their usage will be limited 
to the expression they appear in.



More information about the Digitalmars-d-announce mailing list