guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Goops and finalizing


From: Lars J. Aas
Subject: Goops and finalizing
Date: Wed, 6 Sep 2000 19:51:20 +0200

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]