This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Goops and finalizing
- To: guile-user at gnu dot org
- Subject: Goops and finalizing
- From: "Lars J. Aas" <larsa at sim dot no>
- Date: Wed, 6 Sep 2000 19:51:20 +0200
- List-Id: <guile-user.gnu.org>
Is there any way to have some sort of destructor for a goops class that
kicks in before an instance is garbage collected? I didn't see any doc
on it...
I was thinking of something like this:
(define-class <class> ()
...)
(define-method initialize ((class <class>))
[initialize instance])
(define-method finalize ((class <class>))
[finalize instance])
Lars J
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user