Corresponds to the C
The type of the constant. The default is
type corresponds to the C
type qualifier. The behavior of a
is exactly the same as the behavior of its
, and it is only included to ease the readability of FLI code and for naming conventions.
In the following example a constant is allocated and set equal to 3.141.
(setq pi1 (fli:allocate-foreign-object
:type '(:const :float)))
(setf (fli:dereference pi1) 3.141))
LispWorks Foreign Language Interface User Guide and Reference Manual - 13 Sep 2005