| Allegro CL version 8.0 Unrevised from 7.0 to 8.0. Minimal update since 8.0 release. | ||||||||||
Arguments: &key foreign-address foreign-type size address type
Creates and returns a foreign-pointer object. These
objects are designed to hold integer addresses and in most cases, an
integer works as well as a foreign-pointer object. An advantage of
foreign-pointer objects is simply that they are different from an
integer, allowing for better checking. And because it is an instance
of a CLOS class, it can be extended in the normal CLOS way.
foreign-address is the C address that is
being pointed to; foreign-type is a
user-specifiable type that becomes the value of the foreign-type slot
of the foreign-pointer
instance being created. size causes
allocation of foreign space of that size. Typically, only one of the
size and foreign-address
keyword arguments is specified. size is ignored
if foreign-address is specified.
It is an error if both size and foreign-address are unspecified.
address and type are obsolete and should not be used. They are variants of foreign-address and foreign-type. If adress is specified, the value should be as for foreign-type. You should not specify both address and foreign-address.
See foreign-pointer-address, foreign-pointer-type, and foreign-pointer-p.
See ftype.htm for information on foreign types in Allegro CL and foreign-functions.htm for general information on foreign functions in Allegro CL.
Copyright (c) 1998-2008, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 8.0. This page was not revised from the 7.0 page.
Created 2005.12.9.
| Allegro CL version 8.0 Unrevised from 7.0 to 8.0. Minimal update since 8.0 release. | ||||||||||