digitalmars.D.bugs - [Issue 8245] New: UFCS doesn't work for pointers
- d-bugmail puremagic.com (36/36) Jun 14 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8245
- d-bugmail puremagic.com (20/20) Apr 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=8245
- d-bugmail puremagic.com (10/10) Apr 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=8245
- d-bugmail puremagic.com (8/8) Apr 22 2013 http://d.puremagic.com/issues/show_bug.cgi?id=8245
- d-bugmail puremagic.com (9/9) Apr 23 2013 http://d.puremagic.com/issues/show_bug.cgi?id=8245
http://d.puremagic.com/issues/show_bug.cgi?id=8245 Summary: UFCS doesn't work for pointers Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: dawg dawgfoto.de cat > bug.d << CODE string toStr(immutable(char)* p) { return null; } void main() { immutable(char)* p = "foobar".ptr; p.toStr(); } CODE dmd -c bug Error: no property 'toStr' for type 'immutable(char)' ---- Property resolution is only attempted on the dereferenced value. IIUC we'd need to do 4 lookups. - intrinsic properties - properties of dereferenced value - ufcs of value - ufcs of dereferenced value (bug 8213) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 14 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8245 Denis Shelomovskij <verylonglogin.reg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |D2 12:21:44 MSD --- Code from description compiles fine now. But it still fails for properties: --- property string asStr(immutable(char)* p) { return null; } void main() { immutable(char)* p = "foobar".ptr; p.asStr; // Error: no property 'asStr' for type 'immutable(char)' } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8245 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid https://github.com/D-Programming-Language/dmd/pull/1911 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8245 Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/508239985de8e6cab91bc1855a33e162f3c96a1b fix Issue 8245 - UFCS doesn't work for pointers -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 22 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8245 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 23 2013