Next Previous Up Top Contents Index

6 Type Reference

:foreign-array

FLI type descriptor

Summary

Converts between Lisp structures and foreign language arrays.
Package

fli

Syntax

:foreign-array type dimensions

Arguments

type

The type of the elements of the array.

dimensions

A list containing the dimensions of the array.

Description

The FLI:foreign-array converts between Lisp structures and foreign language arrays. It creates an array with the dimensions specified in dimensions, of elements of the type specified by type.
Example

The following code defines a 3 by 4 foreign array with elements of type:byte.
(setq farray (fli:allocate-foreign-object
             :type '(:foreign-array :byte (3 4)))
See Also

:c-array
foreign-aref
foreign-array-pointer

LispWorks Foreign Language Interface - 12 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker