Subject: Re: The value "" is not of type (AND (VECTOR CHARACTER) (SATISFIES ARRAY-HAS-FILL-POINTER-P))
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 26 Aug 2006 07:12:55 -0500
Newsgroups: comp.lang.lisp
Message-ID: <dvCdnWpEedxap23ZnZ2dnUVZ_o-dnZ2d@speakeasy.net>
Jimka <jimka@rdrop.com> wrote:
+---------------
| Can someone please explain to me the meaning of this error.
| When i type in the example from the hyperspec into sbcl i get an
| error rather than the predicted result.
| (setq fstr (make-array '(0) :element-type 'base-char
|                              :fill-pointer 0 :adjustable t))
+---------------

[Note: You really should declare your variables before using them...]

+---------------
| (with-output-to-string (s fstr)
|     (format s "here's some output")
|     (input-stream-p s))
| 
| Rather than with-output-to-string returning nil, the following error
| occurs.
| The value "" is not of type (AND (VECTOR CHARACTER) (SATISFIES
| ARRAY-HAS-FILL-POINTER-P)).
|    [Condition of type TYPE-ERROR]
+---------------

That works fine in both CMUCL & CLISP.


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607