From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5997b4b7b514f689 X-Google-Attributes: gid103376,public From: Mats Weber Subject: Re: Reading a line of arbitrary length Date: 1997/02/21 Message-ID: <330DFE18.5FB9@elca-matrix.ch>#1/1 X-Deja-AN: 220625186 References: <330319F1.41C67EA6@innocon.com> <5ef263$3oq@news.cict.fr> Content-Type: text/plain; charset=us-ascii Organization: ELCA Matrix SA Mime-Version: 1.0 Reply-To: Mats.Weber@elca-matrix.ch Newsgroups: comp.lang.ada X-Mailer: Mozilla 3.01 (Macintosh; I; PPC) Date: 1997-02-21T00:00:00+00:00 List-Id: > The question about storage usage was resolved by the fact that leaving the > scope of the Ref_String type would free the storage used by the successive values > of Buffer.all. In Ada 83, this is not guaranteed to be portable (i.e. it may leak memory on some implementations). I don't know if reclaiming that memory is required in Ada 95. > I can't fully test it, because my installation can't support input lines longer > than 255 characters :-( One level of recursion per character will not be very efficient.