www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9981] New: Implement lazy ref arguments

http://d.puremagic.com/issues/show_bug.cgi?id=9981

           Summary: Implement lazy ref arguments
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: timon.gehr gmx.ch


--- Comment #0 from timon.gehr gmx.ch 2013-04-23 03:21:29 PDT ---
DMD 2.062:

bool isLvalue(T)(lazy auto ref T t){ return __traits(isRef, t); }

void main(){
    int i;
    static assert(isLvalue(i));
    static assert(!isLvalue(i + 1));
}

/c286/c611.d(2): Error: incompatible parameter storage classes

Lazy and (auto )ref are not incompatible parameter storage classes.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 23 2013