address-of
type: function (subr) location: built-in source file: xlsys.c Common LISP compatible: no supported on: all machines
SYNTAX
(address-of <expr> )
<expr> - an expression
DESCRIPTION
The ADDRESS-OF function returns the internal memory address of the XLISP node that corresponds to <expr>. The value returned is an integer.
EXAMPLES
(setq var 0) ; set up VAR with 0 (address-of var) ; returns 123224 (address-of 'var) ; returns 182638 (peek (address-of var)) ; returns 83951616 (peek (1+ (address-of var))) ; returns 16777216 (peek (+ 2 (address-of var))) ; returns 0 <-- value of VAR (setq var 14) ; change the value to 14 (peek (+ 2 (address-of var))) ; returns 14 (setq var 99) ; change the value to 99 (peek (+ 2 (address-of var))) ; returns 99
CAUTION: Be careful when modifying the internal state of XLISP. If you have modified it, it would be a good idea to exit XLISP and re-enter before doing any work you really want to retain.