www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7291] New: UFCS doesn't work for static member functions

reply d-bugmail puremagic.com writes:
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



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
parent d-bugmail puremagic.com writes:
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



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