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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a0833bbed8752e1f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: variable length strings Date: Thu, 28 Oct 2004 11:06:03 +0200 Message-ID: References: <1861614.TWv5A9FgVL@linux1.krischik.com> <4178e979_1@baen1673807.greenlnk.net> <1195374.UMjBCk7lO1@linux1.krischik.com> <1154613.ipZcUgduzp@linux1.krischik.com> <1174011.lJ1dcgRM3Q@linux1.krischik.com> <1098814048.280053@master.nyc.kbcfp.com> <10z8k19febkic.16ex86io5uvwi.dlg@40tude.net> <1ok9c1htwcrmd.dta4w50brarb.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de QJfrWZYmkyUohT+jZT9hOQ+8RLgyduN0NPrcsCww1dZnX5hz4= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:5788 Date: 2004-10-28T11:06:03+02:00 List-Id: On 28 Oct 2004 10:49:14 +0200, Pascal Obry wrote: > "Dmitry A. Kazakov" writes: > >> You (Get_Line) just push the problem to the user, who will write: >> >> declare >> Buffer : String (1..?); >> Length : Integer; >> begin >> Get_Line (Buffer, Length); >> >> 1) Buffer is on the stack. 2) Its upper bound is unknown except for very >> rare cases. The requirements usually as helpful as "it should work with >> reasonable files". Go figure out the upper bound! > > You missed it ! Please have a look at the Get_Line documentation. What have I missed? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de