Re: portable finalizer
- From: "Mark H." <mark.hoemmen@xxxxxxxxx>
- Date: Thu, 05 Jul 2007 14:24:53 -0700
On Jul 4, 1:40 am, Tamas Papp <tkp...@xxxxxxxxx> wrote:
(defmethod destroy ((object foo))
(with-slots (pointer) object
(when pointer
(call_c_api_to_destroy pointer)
(setf pointer nil))))
You might want to setf pointer to a null pointer instead of to NIL, so
that the type of pointer is always a C pointer. Not a big deal but it
could be a useful invariant.
mfh
.
- Follow-Ups:
- Re: portable finalizer
- From: Rob Warnock
- Re: portable finalizer
- References:
- portable finalizer
- From: Tamas Papp
- Re: portable finalizer
- From: Marco Gidde
- Re: portable finalizer
- From: Tamas Papp
- portable finalizer
- Prev by Date: Re: socially challenged???!!??
- Next by Date: Re: All hail the glorious, the magnificent Kenny
- Previous by thread: Re: portable finalizer
- Next by thread: Re: portable finalizer
- Index(es):
Relevant Pages
|