Re: Is READ-LINE required to return a fresh string?
- From: Rainer Joswig <joswig@xxxxxxx>
- Date: Wed, 27 Aug 2008 23:27:52 +0200
In article <871w0atbat.fsf@xxxxxxxxx>,
Richard M Kreuter <kreuter@xxxxxxxxx> wrote:
Hi,
I don't think I see anything in the READ-LINE specification that
requires the first return value to be a fresh string. Does anybody
else see such a requirement? (Otherwise, are conforming programs
supposed to copy any line they want to modify or hold on to?)
--
RmK
I also can't see it specified.
But I would expect CL:READ-LINE to return a fresh string
on each call.
I would also expect that once CL:READ-LINE returns a string
the user program can use it and change it without affecting
other read/write operations.
I can't remember seeing code that makes other assumptions.
Typical use would be to iterate over the lines of a stream
and collect all the read lines in some data structure.
I would expect that there is no reuse of strings going
on.
--
http://lispm.dyndns.org/
.
- Follow-Ups:
- Re: Is READ-LINE required to return a fresh string?
- From: Scott Burson
- Re: Is READ-LINE required to return a fresh string?
- Prev by Date: Re: An Acceptable Lisp
- Next by Date: Re: Is READ-LINE required to return a fresh string?
- Previous by thread: Re: 419 spammer harvested address
- Next by thread: Re: Is READ-LINE required to return a fresh string?
- Index(es):