On Monday, 14 September 2020 at 12:44:34 UTC, 60rntogo wrote:
--- struct Foo { int x; }extern(C++) void fun(const ref Foo foo = Foo(1)); ---
I suppose this should have been: --- extern(C++): struct Foo { int x; } void fun(const ref Foo foo = Foo(1)); --- Not that it changes the question in any way.