The function object-pointer
returns an integer specifying the actual representation of the object object. For most objects, that would be the pointer to it, which is its address (as returned by object-address) plus some tag. Some objects are "immediate" (that is they do not use memory, and immediatep returns t
) and for these object-pointer
returns the actual address.
The Garbage Collector can move objects, therefore the result of object-pointer
is not permanent. It should be used only for debugging.
(let ((gf #'make-instance))
(format t "~a pointer is ~x~%" gf
(sys:object-pointer gf)))
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4