[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
format directive ~? broken with XP?
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: format directive ~? broken with XP?
- From: Benjamin Price Shults <bshults@math.utexas.edu>
- Date: Fri, 26 Jul 96 12:12:02 CDT
- Posted-date: Fri, 26 Jul 96 12:12:02 CDT
I think I reported this before but the message may not have gone
through.
Use of the ~? directive in combination with pretty printing directives
seems to break CLISP. I load xp-code.lisp and go into the xp package.
Then:
--begin script--
> (format nil "~<HEIGH ~s~:>" '(ho))
"HEIGH HO" ; correct
> (format nil "~?" "~<HEIGH ~s~:>" '((ho)))
"HEIGH (HO)" ; incorrect (old format behavior)
> (format nil "~<hi ~:@_ ho ~:>" nil)
"hi
ho " ; correct
> (format nil "~?" "~<hi ~:@_ ho ~:>" '(nil))
*** - Non-existent directive
Current point in control string:
~<hi ~:@_ ho ~:>
|
1. Break>
--end script--
The first line is correct. The second line gives the wrong output.
(It gives the same output as if I used the non-xp format.) The third
line is correct. The fourth line gives an error and it should not.
Apparently the recursive call to format does not know that it has been
redefined.
Am I doing something wrong?
Benji
--
Benjamin Shults Email: bshults@math.utexas.edu
Department of Mathematics Phone: (512) 471-7711 ext. 208
University of Texas at Austin WWW: http://www.ma.utexas.edu/users/bshults
Austin, TX 78712 USA FAX: (512) 471-9038 (attn: Benjamin Shults)