www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2345] New: Return by reference should be allowed

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2345

           Summary: Return by reference should be allowed
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: andrei metalanguage.com


This is technically an enhancement but a showstopper in building ranges and
algorithm2.

ref int left(int[] r)
{
    return r[0];
}


-- 
Sep 07 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2345


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2008-10-20 22:21 -------
Fixed dmd 2.020


-- 
Oct 20 2008