digitalmars.D.bugs - [Issue 3015] New: Lookup of non-member not working
- d-bugmail puremagic.com (35/35) May 20 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3015
- d-bugmail puremagic.com (13/13) May 21 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3015
- d-bugmail puremagic.com (10/10) May 21 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3015
- d-bugmail puremagic.com (12/12) Oct 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3015
http://d.puremagic.com/issues/show_bug.cgi?id=3015 Summary: Lookup of non-member not working 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 code doesn't compile: struct R { bool empty(); ref int front(); void popFront(); } ref int popNext(ref R fwdRange) { auto result = & fwdRange.front(); fwdRange.popFront; return *result; } void main() { R r; int x = r.popNext; } The code should work: popNext should be looked up in R's outer scope if not a member. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 20 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3015 Gide Nwawudu <gide nwawudu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid CC| |gide nwawudu.com Added keyword, error message is as follows. C:> dmd test.d test.d(18): Error: no property 'popNext' for type 'R' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 21 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3015 Georg Wrede <georg iki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |georg iki.fi Invisible first paramter? Not with a one-parameter function? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 21 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3015 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich gmail.com Resolution| |FIXED 11:51:15 PDT --- Seems to work now. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 28 2012