My Reference Safety System (DIP???)
via Digitalmars-d
digitalmars-d at puremagic.com
Sat Feb 28 12:51:22 PST 2015
On Saturday, 28 February 2015 at 11:12:23 UTC, Marc Schütz wrote:
> On Friday, 27 February 2015 at 23:37:42 UTC, deadalnix wrote:
>> You don't cover the lifetime of the address of operation, and
>> I'm not how this is supposed to work in your proposal.
>>
>
> It was in the examples, but it was wrong. I've corrected it: A
> dereference results in static lifetime.
... but only on the LHS of an assignment; on the RHS its the
scope of the reference it comes from (it's lifetime is at least
as long as that of the reference).
More information about the Digitalmars-d
mailing list