What is legal in a destructor?
Chris Nicholson-Sauls
ibisbasenji at gmail.com
Sun Aug 27 08:22:31 PDT 2006
Lutger wrote:
> Also, is there a way to have the garbage collector run and collect dead
> objects without the delete expression, so as to experiment with the
> behavior?
# static import std.gc ;
#
# class Foo {
# /* ... */
# }
#
# void main () {
# Foo f = new Foo;
# f = null;
# std.gc.fullCollect();
# }
http://digitalmars.com/d/phobos/std_gc.html
-- Chris Nicholson-Sauls
More information about the Digitalmars-d-learn
mailing list