codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
module foo; static this() { import std.stdio; writeln("ctor!"); } shared static this() { import std.stdio; writeln("shared ctor!"); } static ~this() { import std.stdio; writeln("dtor!"); } shared static ~this() { import std.stdio; writeln("shared dtor!"); } void test() { import std.stdio; writeln("foo.test"); }
Private
[
?
]
Run code
Submit