Returns the address of the given object as an integer. Note that the address is likely to change during garbage collection so this integer should be used for debugging purposes only.
This shows that the address returned by sys:object-address
is the same as the one printed by the print-object
method for generic-function
.
CL-USER 1 > (let ((gf #'initialize-instance))
(format t "address = ~X~%gf = ~S"
(sys:object-address gf) gf))
address = 1cff778
gf = #<STANDARD-GENERIC-FUNCTION INITIALIZE-INSTANCE 1cff778>
NIL
CL-USER 2 >