DIP1000: Scoped Pointers (Discussion)
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 12 03:12:29 PDT 2016
On Thursday, 11 August 2016 at 21:57:06 UTC, Walter Bright wrote:
> With conditionals, the scope of it is the narrowest scope of
> each of its leaves.
>
>> (cond ? a : c) = &b; // not ok, accepted even though a
>> outlives b
>
> I had overlooked the lvalue case, but you're right. The rules
> for it are inevitable.
>
I raised that in November 2014 already.
To be honest I'm to a point were I'm starting withdrawing from
these conversation because I have no idea how to reach to you
guys. I could write on toilet paper before using it to the same
effect.
More information about the Digitalmars-d
mailing list