digitalmars.D.bugs - [Issue 7291] New: UFCS doesn't work for static member functions
- d-bugmail puremagic.com (25/25) Jan 14 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7291
- d-bugmail puremagic.com (15/15) Dec 02 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7291
http://d.puremagic.com/issues/show_bug.cgi?id=7291 Summary: UFCS doesn't work for static member functions Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2012-01-14 12:07:54 PST --- module test; struct Foo { static void func(string x) { } void foo() { "".func(); } } void main() { } test.d(6): Error: undefined identifier module test.func -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 14 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7291 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rejects-valid | Status|NEW |RESOLVED Resolution| |INVALID Severity|normal |enhancement --- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2012-12-02 11:23:46 PST --- This was an enhancement, not a bug. But implementing this could cause issues, namely what about base class static functions, etc. It's better to leave UFCS to module functions. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 02 2012