simple-condition-format-arguments question

Dan Stanger <[email protected]>
Newsgroups gmane.lisp.clisp.general
Message-ID <CAFyhtT5BeauK7ggXfWAc++_y-VgJw9ssZGgCzb8_1vUvJrU=Pw@mail.gmail.com>
Hello All,
I am trying to catch a programing condition which manifests itself by
calling format with insufficient arguments. My intention is to catch the
error, truncate the format string for the supplied arguments, and continue.
Here are 2 examples. I find that the number returned is larger than the
format string.
Is my understanding of the number returned by simple-condition-format-arguments
incorrect?
Thank you,
Dan Stanger

(handler-case (format t "~a ~a" 1) (simple-condition (e) (format t "caught
~%~a~%" (simple-condition-format-arguments e))))
1 caught
(~a ~a 6)
NIL
[13]>
(handler-case (format t "~a ~a ~a" 1 2) (simple-condition (e) (format t
"caught ~%~a~%" (simple-condition-format-arguments e))))
1 2 caught
(~a ~a ~a 9)

_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.