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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3c99788a4ac63037 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Pageless Text_IO Date: 1999/11/17 Message-ID: <80vet2$le2$1@nnrp1.deja.com>#1/1 X-Deja-AN: 549874798 References: <80qarp$9qe1@news.cis.okstate.edu> <383210d2.0@news.pacifier.com> X-Http-Proxy: 1.0 x24.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Nov 17 23:48:51 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-11-17T00:00:00+00:00 List-Id: In article <383210d2.0@news.pacifier.com>, "DuckE" wrote: > Why not use Set_Page_Length to set the length of a page > sufficently long that you will never run into the length? All > text will appear on page 1. > > Esthletically correct? No. But it should work. Yes, but why not just specify unbounded page length by setting it to zero, much more straight forward. This is typically the default in any case. But this solves only the output problem, not the input problem which was the source of the original question (remember we were talking about inputting source to a compiler). Here the trouble is that form feed in the input will indeed reset the line count. > > SteveD > > David Starner wrote in message > news:80qarp$9qe1@news.cis.okstate.edu... > > I'm having some problems with Text_IO, and Barnes' book doesn't > > cover it well. > > > > I'm writing a compiler. Programmers tend to embed form feeds in > > the text, without expecting the compiler to worry about them. > > In particular, "Page 7: Line 1: Invalid character" wouldn't > > amuse most programmers. Is there any way to tell the compiler > > to ignore page breaks? > > > > -- > > David Starner - dstarner98@aasaa.ofe.org > > I see no trend at all, except toward women playing mean and ugly > > sociopaths who are good at killing and who enjoy dark powers. Maybe > > it's just my friends? > > -- Dr. Kromm, on who plays what type of character in RPGs > > Sent via Deja.com http://www.deja.com/ Before you buy.