This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Goops and finalizing


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]