www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11829] New: Documentation of implicit template argument conversion out of date.

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

           Summary: Documentation of implicit template argument conversion
                    out of date.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: timon.gehr gmx.ch



http://dlang.org/template.html

"Even if template arguments are implicitly converted to the same template
parameter type, they still refer to different instances:

struct TFoo(int x) { }
static assert(is(TFoo!(3) == TFoo!(2 + 1))); // 3 and 2+1 are both 3 of type
int
static assert(!is(TFoo!(3) == TFoo!(3u)));   // 3u and 3 are different types"

I think this has been fixed in a recent release.

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