DIP69 - Implement scope for escape proof references

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 11 16:15:04 PST 2014


On Thursday, 11 December 2014 at 14:12:16 UTC, Nick Treleaven 
wrote:
> On 09/12/2014 16:25, Steven Schveighoffer wrote:
>> Will ref just automatically bind to any scoped reference?
>
> A ref parameter essentially is a scope ref parameter, but it 
> can also be returned:
> http://forum.dlang.org/post/m64v3g$2bga$1@digitalmars.com

Introducing a keyword to be able to add arbitrary restriction 
that do not make the code safer, more optimization or anything is 
not paying for itself.


More information about the Digitalmars-d mailing list