Re: problem calling read-from-string
Lawrence Au <[email protected]> Wed, 11 Oct 2006 13:17:01 -0400
| Newsgroups | gmane.lisp.open-source.franz |
|---|---|
| Message-ID | <[email protected]> |
Harley,
Thanks so much for your advice!
As unfamiliar as I am about packages,
I indeed forgot to export
the structure definitions from my own package to Aserve's.
I'll try that and see if it works.
Lawrence
On Oct 11, 2006, at 12:38 PM, Harley Gorrell wrote:
> 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.
>