Next Previous Up Top Contents Index

6 Type Reference

:const

FLI type descriptor

Summary

Corresponds to the Cconst type.
Package

fli

Syntax

:const &optional type

Arguments

type

The type of the constant. The default is:int.

Description

The FLI:const type corresponds to the Cconst type qualifier. The behavior of a:const is exactly the same as the behavior of its type, and it is only included to ease the readability of FLI code and for naming conventions.
Example

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))

See Also

:volatile

LispWorks Foreign Language Interface - 12 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker