[Dlang-internal] DIP1000 discussion and testing

Martin Nowak via Dlang-internal dlang-internal at puremagic.com
Tue Oct 25 01:02:39 PDT 2016


On Tuesday, 25 October 2016 at 07:51:21 UTC, Martin Nowak wrote:
> To make this work, we'd need to disallow any mutation of s, 
> while references to it are reachable.

Didn't mention this explicitly. Binding the returned scope value 
as named scope ref argument to a chained function call must of 
course be possible, but that still wouldn't allow to bind to a 
variable that outlives the expression.
So it's really somewhat similar to rvalues.


More information about the Dlang-internal mailing list