reader & threads problem

View: New views
2 Messages — Rating Filter:   Alert me  

reader & threads problem

by Vladimir Tzankov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sam,

Sometimes I get such errors when running check-tests-parallel:

number.erg:
Form: (/ 8.041s-24 -1.3974s-23)
CORRECT: |-0.575424S0|
CLISP  : -0.575424s0

or from bin-io.erg:
Form: (LIST->FLOAT '(63 240 0 0 0 |0| 0 0) 'DOUBLE-FLOAT :BIG)
CORRECT: 1.0d0
CLISP  : ERROR
COERCE: |0| cannot be coerced to type INTEGER

As it looks reader treated numbers as symbol. Is there something in
reader that may be shared between threads?

Vladimir

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
clisp-devel mailing list
clisp-devel@...
https://lists.sourceforge.net/lists/listinfo/clisp-devel

Re: reader & threads problem

by Sam Steingold :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Vladimir Tzankov wrote:

>
> Sometimes I get such errors when running check-tests-parallel:
>
> number.erg:
> Form: (/ 8.041s-24 -1.3974s-23)
> CORRECT: |-0.575424S0|
> CLISP  : -0.575424s0
>
> or from bin-io.erg:
> Form: (LIST->FLOAT '(63 240 0 0 0 |0| 0 0) 'DOUBLE-FLOAT :BIG)
> CORRECT: 1.0d0
> CLISP  : ERROR
> COERCE: |0| cannot be coerced to type INTEGER
>
> As it looks reader treated numbers as symbol. Is there something in
> reader that may be shared between threads?

I don't see anything.
I don't see how 0 can be interpreted as a symbol.
Bruno?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
clisp-devel mailing list
clisp-devel@...
https://lists.sourceforge.net/lists/listinfo/clisp-devel