manpagez: man pages & more
info guile
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.7.10 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 section 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.

This document was generated on April 20, 2013 using texi2html 5.0.

© 2000-2019
Individual documents may contain additional copyright information.