[Issue 8834] New: UFCS doesn't work with local aliases to functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 16 21:40:39 PDT 2012


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

           Summary: UFCS doesn't work with local aliases to functions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: stasoid at yahoo.com


--- Comment #0 from stas <stasoid at yahoo.com> 2012-10-16 21:40:33 PDT ---
Applies to: DMD 2.060

This should work:

import std.stdio, std.string;
void main()
{
    alias toStringz z;

    sscanf("".z,"".z); // Error: undefined identifier 'z'
                       // OK if z is not local
}

-- 
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