www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11517] New: Allow generic "BasicType" in alias this declaration

https://d.puremagic.com/issues/show_bug.cgi?id=11517

           Summary: Allow generic "BasicType" in alias this declaration
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: monarchdodra gmail.com


--- Comment #0 from monarchdodra gmail.com 2013-11-14 12:44:14 PST ---
Just like a standard alias, as opposed to only "Identifier".

Right now:
AliasThisDeclaration:
    alias Identifier this

Request:
AliasThisDeclaration:
    alias Identifier this
    alias BasicType this

See also:
https://d.puremagic.com/issues/show_bug.cgi?id=8735

For example:
struct Foo
{
    int test(string op)() { return 0; }
    alias test!"*" this;
}

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