[Ecls-list] Embedding ECL inside a containing C++ program.

Andrew Topp talmakion at yahoo.com.au
Sun Aug 25 08:57:03 UTC 2002


Juanjo:

Well, I fixed the STREAM-READ-CHAR bug.

In string_to_object(), it calls read_object() with a
string stream as argument. read_object() doesn't reset
the read_ch_fn pointer from interactive_readc() back
to readc(). 

interactive_readc() is the CLOS wrapper fn, and tries
to treat the stream as a instance, which it isn't.

Simply adding a read_ch_fn = readc; to
string_to_object() before read_object() is called
fixes the problem. read_object() could check its
stream argument as the other functions do and switch
read_ch_fn appropriately, but it doesn't seem to be
required.

read.d::string_to_object():

           detect_eos_flag = FALSE;
Line 2072: read_ch_fun = readc;
           x = read_object(in);

>> Andrew (talmakion at yahoo.com.au).


http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC!




More information about the ecl-devel mailing list