Next Previous Up Top Contents Index

1.9 Utility designator classes

<C-Dylan-object>

Open abstract class

Description

A mapped subclass of <C-void*>. Objects of this type correspond to specific Dylan objects. The Dylan type for import and export is <C-Dylan-Object>. The C type is void*.

To pass a reference to an arbitrary Dylan object to C, the Dylan object first must be registered using <C-Dylan-object>. Then a <C-Dylan-object> handle to the object can be created using the function export-C-Dylan-object. The handle can then be passed directly to any C transition point designated as <C-Dylan-object>. Any object received by Dylan from a transition point designated as <C-Dylan-object> may be passed to import-C-Dylan-object to get the Dylan object for which it was a handle.


C FFI and Win 32 Reference - 31 MAR 2000

Next Previous Up Top Contents Index