[Issue 3003] New: Need to implicitly add () on member template function calls

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 17 12:49:39 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3003

           Summary: Need to implicitly add () on member template function
                    calls
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: bugzilla at digitalmars.com


The following should work:

struct Foo
{
    char[] byLine()()
    {
        return null;
    }
}

void main()
{   Foo foo;

    foreach (char c; foo.byLine)
    {
    }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list