Re: problem calling read-from-string

Harley Gorrell <[email protected]> Wed, 11 Oct 2006 09:38:01 -0700 (PDT)
Newsgroups gmane.lisp.open-source.franz
Message-ID <[email protected]>
On Tue, 10 Oct 2006, Lawrence Au wrote:
> But when I call it within the context of an aserve
> worker thread,  I  get a stream error of
> Undefined function NET.ASERVE::STREAM-ERROR-IDENTIFIER called with argument
> (#<CONDITIONS:SIMPLE-READER-ERROR 100BE73F>).

    Can you extract any information from the condition
object?  That would provide more clues.

    As a guess: Is the structure name exported to the package
the aserve thread is in?  It may be that the condition being
reported is:  "X is not the name of a structure".

    This is an example of what I am describing.

;; define but dont use..
(defpackage :foo)
(defstruct foo::foo
   (bar 0))

;; not qualified - fails
(read-from-string "#S(foo :bar 0)")

;; qualified - works
(read-from-string "#S(foo::foo :bar 0)")

harley.