-dip25 switch: time to make it always on?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 29 13:51:56 PDT 2016


On 6/29/2016 6:45 AM, Jacob Carlborg wrote:
> How is it a success? Grepping on "return ref" gives back four results in Phobos
> and one in druntime.

It was designed to solve the returning reference problem with as few annotations 
as possible. Needing only 4 annotations in the entire runtime library and yet 
have plugged the holes is quite nice.

Also, there are more cases the grep doesn't show, i.e.:

     ref foo() return { ... }



More information about the Digitalmars-d mailing list