10 lines
9.0 KiB
Plaintext
10 lines
9.0 KiB
Plaintext
Script for testing defstruct and the inspector with defstruct
|
||
(assuming currently in Common Lisp User package)
|
||
-----------------------------------------------------
|
||
type:
|
||
(cl:in-package "USER")
|
||
|
||
type:
|
||
(defstruct rec (a "hello there" :type IL:pointer)(b 5 :type il:integer) (c 4 :type il:fixp) (d 2.3 :type il:floating) (e 4.5 :type il:floatp) (f -5 :type il:signedword :read-only t) (g T :type il:flag) (h 7 :type il:bits3) (i 4 :type il:byte) (j 7 :type il:word) (k '(a b c d) :type il:xpointer))
|
||
|
||
-- it should reply rec
|
||
|
||
type:
|
||
(setf rec1 (make-rec :e 2.3))
|
||
|
||
type:
|
||
(inspect rec1)
|
||
|
||
-- a window that looks like the following appears
|
||
|
||
|