3 ms·
This is the TXR Lisp interactive listener of TXR 188. Quit with :quit or Ctrl-D on empty line. Ctrl-X ? for cheatsheet. 1> (defstruct incster nil (va
by kazinator 9y ago
This is the TXR Lisp interactive listener of TXR 188.
Quit with :quit or Ctrl-D on empty line. Ctrl-X ? for cheatsheet.
1> (defstruct incster nil
(val 0)
(:method equal (me) (inc me.val)))
#<struct-type incster>
2> (let ((a (new incster)))
(and (equal a 1) (equal a 2) (equal a 3)))
t
:)
Equality substitution: http://www.nongnu.org/txr/txr-manpage.html#N-00790C76 http://www.nongnu.org/txr/txr-manpage.html#N-00790C76