January 14, 2012 [Issue 7291] New: UFCS doesn't work for static member functions | ||||
---|---|---|---|---|
| ||||
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: ------- |
December 02, 2012 [Issue 7291] UFCS doesn't work for static member functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation