Quick actions

cmd+k|ctrl+k

Navigation

Languages

Untitled

Snippet info

Language

D

Visibility

unlisted

Author

legacy-anonymous

Created

2017-10-13T10:01:23Z

Updated

2017-10-13T10:01:23Z

import std.stdio;

struct Bar {
    this(this) {
        writefln("Bar.this(this): %X", &this);
    }
    this(int) {
        writefln("Bar.this(int): %X", &this);
    }
    ~this() {
        writefln("Bar.~this(): %X", &this);
    }
}

void fun(Bar n) {
    writefln("fun: %X", &n);
}

void main() {
    fun(Bar(0));
}
INFO