extern(C++) struct A
{
void foo(T)(T a);
}
void main()
{
A a;
assert(a.foo!int.mangleof == "_ZN1A3fooIiEEvT_");
}
This assertion fails as the function parameters are not mangled as template arguments.
D's mangling : ZN1A3fooIiEEvi
Comment #1 by robert.schadek — 2024-12-13T19:33:53Z