2
;;;; Author: Paul Dietz
3
;;;; Created: Sat Oct 12 10:00:50 2002
4
;;;; Contains: Tests for PROGV
13
(progv '(x) '(1) (not (not (boundp 'x))))
17
(progv '(x) '(1) (symbol-value 'x))
22
(locally (declare (special x))
41
(progv '(x) () (setq x 1))
46
(progv '(x y z) '(1 2 3)
47
(locally (declare (special x y z))
52
(progv '(x y z) '(1 2 3 4 5 6 7 8)
53
(locally (declare (special x y z))
60
(progv '(x y z w) '(1)
61
(values (not (not (boundp 'x)))
67
;; forms are evaluated in order
70
(let ((x 0) (y 0) (c 0))
72
(progn (setf x (incf c)) nil)
73
(progn (setf y (incf c)) nil)
82
(progv nil nil (go 10) 10 (return 'bad))
87
;;; Variables that are not bound don't have any type constraints
91
(locally (declare (special x y) (type nil y))