xxxxxxxxxx
import std.stdio;
struct Foo {
this(int) {}
~this() {}
}
struct Bar {
this(this) {
writefln("Bar.this(this): %X", &this);
}
this(Foo, Foo) {
writefln("Bar.this(int): %X", &this);
}
~this() {
writefln("Bar.~this(): %X", &this);
}
}
void fun(Bar n) {
writefln("fun: %X", &n);
}
void main() {
fun(Bar(Foo(0), Foo(1)));
}