digitalmars.D.bugs - [Issue 7214] New: Change of template specialization resolution
- d-bugmail puremagic.com (33/33) Jan 03 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7214
- d-bugmail puremagic.com (6/6) Jan 03 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7214
- d-bugmail puremagic.com (13/13) Jan 04 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7214
http://d.puremagic.com/issues/show_bug.cgi?id=7214
Summary: Change of template specialization resolution
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: dawg dawgfoto.de
template isStaticArray(T : U[N], U, size_t N)
{
enum bool isStaticArray = true;
}
template isStaticArray(T)
{
enum bool isStaticArray = false;
}
struct Matrix
{
float[3][3] _data;
alias _data this;
}
static assert(!isStaticArray!Matrix); // isStaticArray!Matrix is true now
---------
This piece of code changed it's semantics with the recent
dmd changes. Just wanted to make sure that this is deliberate.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 03 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7214 The report is bug 7124. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 03 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7214
dawg dawgfoto.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
This is likely OK.
I just saw that the T of T : U[N] will still bind to Matrix,
so the full type information is preserved.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 04 2012









d-bugmail puremagic.com 