5.5.7 The Complete Example

Here is the complete text of the implementation of the image datatype,
as presented in the sections above. We also provide a definition for
the smob’s print function, and make some objects and functions
static, to clarify exactly what the surrounding code is using.

As mentioned above, you can find this code in the Guile distribution, in
doc/example-smob. That directory includes a makefile and a
suitable main function, so you can build a complete interactive
Guile shell, extended with the datatypes described here.)