Next: , Previous: , Up: Argument Conversion   [Contents][Index]


2.4.6 Structs, Unions, and Objects

Guile-GI creates GOOPS types to represent native struct or object types, and the GOOPS class wraps a native pointer to the object information. When converting from Scheme to native, the pointer is extracted. When converting from native to Scheme, an instance of the GOOPS type is created to hold the returned pointer. Note that more than one Guile instance can point to the same pointer.