digitalmars.D.bugs - template parameters
- Bent Rasmussen (14/15) Jul 31 2004 I suspect this bug is on the to-do scroll, but I'll mention it
- Sean Kelly (5/25) Jul 31 2004 This raises the interesting issue of template template parameters, but
I suspect this bug is on the to-do scroll, but I'll mention it
module test;
void main ()
{
}
class A(T)
{
}
class B (T, S: A!(T))
{
}
dmd test.d
"test.d(7): identifier 'T' is not defined"
The compiler is okay with "S: T", "S = T" and "S: T = T".
XP DMD 0.97
Jul 31 2004
Bent Rasmussen wrote:
I suspect this bug is on the to-do scroll, but I'll mention it
module test;
void main ()
{
}
class A(T)
{
}
class B (T, S: A!(T))
{
}
dmd test.d
"test.d(7): identifier 'T' is not defined"
This raises the interesting issue of template template parameters, but
in the above example you don't actually need the second template
parameter at all.
Sean
Jul 31 2004








Sean Kelly <sean f4.ca>