Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.

Next: , Previous: , Up: Data Types   [Contents][Index]


6.6.18 Structures

A structure is a first class data type which holds Scheme values or C words in fields numbered 0 upwards. A vtable is a structure that represents a structure type, giving field types and permissions, and an optional print function for write etc.

Structures are lower level than records (see Records). Usually, when you need to represent structured data, you just want to use records. But sometimes you need to implement new kinds of structured data abstractions, and for that purpose structures are useful. Indeed, records in Guile are implemented with structures.