November 19, 2002 template instatiation inside another template | ||||
---|---|---|---|---|
| ||||
Hi, The following code doesn't compile with dmd 0.49 (didn't compile with 0.48 either): module bug; template A(T) { T id(T t) { return t; } } module bug2; import bug; template B(T) { private instance A(T) a; T same(T t) { return a.id(t); } } int main() { instance B(int) b; printf("%d\r\n", b.same(10)); return 0; } It gives the message "symbol __anonymous '__anonymous' has no semantic routine" after semantic3 in bug2 module. Best regards, Daniel Yokomiso. "I'm less of a neurotic perfectionist than I was. But I don't think that anyone who has done good work in their life isn't a perfectionist. You have to be." - John Cleese |
November 19, 2002 Re: template instatiation inside another template | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Yokomiso | I'll have a look. -Walter |
Copyright © 1999-2021 by the D Language Foundation