Re: HTMLGEN: arguments can't be adjustable strings?

JP Massar <[email protected]> Mon, 22 Dec 2003 22:41:18 -0800
Newsgroups gmane.lisp.open-source.franz
Message-ID <[email protected]>
It could have been coded that way for efficiency considerations
rather than as an oversight.

That being said if the documentation says 'strings' are allowed
then it would be a bug (in the documentation if nothing else).


At 10:12 PM 12/22/03, Andrew Philpot wrote:

>The following works:
>
>CL-USER(667): (let ((zero (make-array 1
>                              :element-type 'character)))
>                 (setf (aref zero 0) #\0)
>                 (net.html.generator:html-stream
>                 *standard-output*
>                 ((:table :border zero))))
><table BORDER="0"></table>
>"</table>"
>
>But if I use an adjustable string instead, HTMLGEN generates an error:
>
>CL-USER(668): (let ((zero (make-array 0
>                              :element-type 'character
>                              :adjustable t
>                              :fill-pointer t)))
>                 (vector-push-extend #\0 zero)
>                 (net.html.generator:html-stream
>                 *standard-output*
>                 ((:table :border zero))))
><table BORDER="
>Error: `"0"' is not of the expected type `SIMPLE-STRING'
>   [condition type: TYPE-ERROR]
>
>Restart actions (select using :continue):
>  0: Return to Top Level (an "abort" restart).
>  1: Abort entirely from this process.
>[1] CL-USER(669):
>
>A bug?
>
>Andrew