Peter Hildebrandt пишет:
What is RAII? I'm afraid I fail to parse your question, sorry.
FWIW, foreign objects are allocated with foreign-allocate and freed
with foreign-free (or something the like). with-foreign-object
encloses its body with calls to allocate and free the foreign object.
There is no such thing as a clos destructor. You might look into
finalizers, which are related.
RAII is "Resource Acquisition Is Initialization" - a C++ idiom.
Something is initialized within constructor and freed within destructor.
Yes, it looks like TRIVIAL-GARBAGE is the way to go...
Cheers,
Dmitri
_______________________________________________
cells-gtk-devel site list
cells-gtk-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/cells-gtk-devel