Next Previous Up Top Contents Index

1 The C-FFI Library

1.8 Allocating and deallocating C storage

C objects can be allocated by calling make on an associated wrapper class or by allocating them on the stack using the macro with-stack-structure.

The C component of a make-allocated object is not deallocated by default when the Dylan designator object is reclaimed by the garbage collector, so we provide a manual means of freeing this storage with the function destroy.

make subclass(<C-pointer>)
destroy
with-stack-structure

C FFI and Win 32 Reference - 31 MAR 2000

Next Previous Up Top Contents Index