Next Previous Up Top Contents Index

18 The SYSTEM Package

staticp

Function

Summary

Specifies whether a given object has been allocated in static memory.
Package

system

Signature

staticp obj => bool

Arguments

obj

An object.

Values

bool

t if the object is allocated in static memory;nil otherwise.

Description

This predicate can be used on an object to find out whether it is allocated in static memory.
Foreign instantiations made by Lisp -- for example in a foreign language interface program -- are made in static memory. The Lisp representations of these alien objects are not, however. Thereforestaticp applied to an alien returnsnil even though the alien instance itself is really allocated in static memory. To establish this, you can check the pointer to the alien instance within its Lisp representation (a structure).


LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker