Specifies whether a given object has been allocated in static memory.
system
staticp obj => bool
obj⇩ |
An object. |
bool | t if the object is allocated in static memory; nil otherwise. |
The function staticp
can be used to find out whether obj is allocated in static memory.
Foreign objects 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. Therefore staticp
applied to an alien returns nil
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® User Guide and Reference Manual - 01 Dec 2021 19:31:02