Comment #1 by archon.saratov — 2021-06-20T18:19:03Z
any news?
Comment #2 by moonlightsentinel — 2021-06-20T19:33:04Z
That would allow external code to silently break the type system as soon as references are involved:
==========================================
// D
extern(C++) class C {}
extern(C++) void foo(ref const C);
void main()
{
static immutable C c = new C();
foo(c);
}
==========================================
// C++
class C;
void foo(const C*& c)
{
c = nullptr; // <= boom
}
==========================================
(Allthough class + ref should be rare outside of generic code)
Comment #3 by robert.schadek — 2024-12-13T19:11:15Z