[Issue 9981] New: Implement lazy ref arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 23 03:21:30 PDT 2013
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 at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at 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: -------
More information about the Digitalmars-d-bugs
mailing list