Juanjo <worm@arrakis.es> wrote:
+---------------
| 4) The ANSI specification says nothing about exceptional conditions in
| SUBTYPEP.
+---------------
Not quite -- it says:
Exceptional Situations: None.
To me, that suggests "never throws an exception". In particular, given
the definition of SUBTYPEP, I should think that this should be fairly
reliable:
(defun valid-subtype-spec-p (x)
(multiple-value-bind (subtype-p valid-p)
(subtypep x t)
(and subtype-p valid-p)))
-Rob
-----
Rob Warnock, PP-ASEL-IA <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607