February 12, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5567

           Summary: arrays can't call aliased functions as member
                    functions
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: jmdavisProg@gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-02-12 15:50:34 PST ---
This program:

import std.range;
import std.stdio;

void main(string[] args)
{
    alias empty e;

    writeln(args.e);
}


fails to compile, giving this message:

test.d(8): Error: undefined identifier module test.e


It shouldn't matter whether an alias is used. The function should act the same way that it does when not aliased. And in this case, that fails, since you can't call it as if the function were a member function of the array, which you can normally do.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5567


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-02 17:23:39 EST ---
The problem is not the alias, but the fact the alias is not at global scope.

*** This issue has been marked as a duplicate of issue 4525 ***

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