digitalmars.D.bugs - [Issue 4233] New: Eponymous template template members inaccessible
- d-bugmail puremagic.com (27/27) May 25 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4233
 - d-bugmail puremagic.com (14/14) May 25 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4233
 
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
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
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
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








 
 
 
 d-bugmail puremagic.com