Hi Bob, all,

Well, I made this change and ran my regression test suite, and
everything still passed. In particular, jess.Console still works; this
doesn't disturb its traditionally delicate constitution. I confirmed
that this doesn't change the (previously debated at length!)
behaviour of (read) and (readline), although it does introduce one
potentially surprising occurrence:

Jess> (read) (read)
"("
Jess> 

I.e., a (read) or (readline) will now return any further tokens on the
same line of code. You can't put any code on a line following a (read)
or it will be interpreted as input to (read). This only happens when
executing code interactively, directly at the console, so it's
unlikely to come up in practice.

So I think I'm willing to do this unless I hear some objections. Does
anyone else want to say anything on this topic?



I think Bob Johnson wrote:
> > 
> It appears that the culprit is line 81 of JessTokenStream.java.
> It reads:
> --------------------------------------------------------------------
>  m_stream.discardToEOL();
> --------------------------------------------------------------------
> 
> Commenting this line out yields:
> 
> --------------------------------------------------------------------
> Jess, the Java Expert System Shell
> Copyright (C) 1998 E.J. Friedman Hill and the Sandia Corporation
> Jess Version 5.0b2 11/8/99
> 
> Jess> (assert (one 1)) (assert (two 2))
> <Fact-0>
> Jess> <Fact-1>
> Jess> (facts)
> f-0   (one 1)
> f-1   (two 2)
> For a total of 2 facts.
> Jess>
> --------------------------------------------------------------------
> 
>     Are people actually counting on the fact that everything after the
> first s-expression is discarded? I humbly request that we remove this
> line from the Jess release.
> 
> Regards,
> 
> Bob
> 
> 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to