Re: confused...
- Posted by mattlewis (admin) Feb 03, 2009
- 952 views
But when I tried inputting this example sequence, I got an error message: "sequence found inside character string". But I thought a character string IS a sequence, and sequences can be nested, can't they?
Could you post the code that you used? It sounds like you're trying to print the result, which is where I believe this error message would come from. You might try printing out using the question mark, or print instead of puts or printf.
Also, for the same function, the manual follows with this:
"Each call to get() picks up where the previous call left off. For instance, a series of 5 calls to get() would be needed to read in: 99 5.2 {1,2,3} "Hello" -1"
On the face of it, this seems to conflict with the previous paragraph which says that "a *single* call to get() will read in...."
Note that there are actually five different objects in the example:
- 99: an integer
- 5.2: an atom
- {1,2,3}: a sequence
- "Hello": a string of characters (which is actually identical to the sequence {72,101,108,108,111}
- -1: an integer
Matt