☰
Debian Codegraph
@
1.5.5.8-1
/
/
examples
/
class
/
destructor.ck
☽
☼
examples/class/destructor.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// example of class destructor
2
3
// a class
4
class Foo
5
{
6
// class destructor
7
fun @destruct()
8
{
9
<<< "destructor called...", "" >>>;
10
}
11
}
12
13
Foo foo;
14
// when `foo` goes out of scope, the destructor should be called...