Next: Starting and controlling the interpreter, Previous: GH preliminaries, Up: GH
The following C constants and data types are defined in gh:
SCM
is a C data type used to store all Scheme data, no matter what the
Scheme type. Values are converted between C data types and the SCM type
with utility functions described below (see Converting data between C and Scheme). [FIXME: put in references to Jim's essay and so forth.]
The Scheme values returned by many boolean procedures in libguile.
This can cause confusion because they are different from 0 and 1. In testing a boolean function in libguile programming, you must always make sure that you check the spec:
gh_
andscm_
functions will usually returnSCM_BOOL_T
andSCM_BOOL_F
, but other C functions usually can be tested against 0 and 1, so programmers' fingers tend to just typeif (boolean_function()) { ... }