www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4233] New: Eponymous template template members inaccessible

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4233

           Summary: Eponymous template template members inaccessible
           Product: D
           Version: 2.041
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: simen.kjaras gmail.com


--- Comment #0 from Simen Kjaeraas <simen.kjaras gmail.com> 2010-05-25 09:23:24
PDT ---
template foo( T ) {
  template foo( U ) {
    enum foo = is( U == T );
  }
}

static assert( foo!( int )!( int ) );

The above code does not compile, complaining that the ! should not be there.
Ok, so I use a FQN:

static assert( foo!( int ).foo!( int ) );

Error: undefined identifier template foo(U).foo

So apparently, there is no way to get access to the inner foo.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4233


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-05-25 13:33:59 PDT ---
This is yet another duplicate of the oldest open DMD enhancement in Bugzilla.
It's probably worth voting for bug 242.

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

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