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: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Mon, 10 May 2010 22:20:37 +0300 Organization: Tidorum Ltd Message-ID: <84r4k5Ftk8U1@mid.individual.net> References: <4be417b4$0$6992$9b4e6d93@newsspool4.arcor-online.net> <1qcb6z4i20dyb.1dz2hd4c0vx69.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net /l6oRHjPKqjymlhLBloAKw8rttCUpTPcmIzsdcekm74GmqF0s8 Cancel-Lock: sha1:9WmHI4lwFStXrtWFDWKUPcytroU= User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:11464 Date: 2010-05-10T22:20:37+03:00 List-Id: Warren wrote: > Dmitry A. Kazakov expounded in > news:1qcb6z4i20dyb.1dz2hd4c0vx69.dlg@40tude.net: > >> On Mon, 10 May 2010 16:52:18 +0000 (UTC), Warren wrote: >>> But if I recall correctly, I also cannot get an >>> empty string as input. An empty string is still >>> valid input. >> Hmm, try this: > > Ok, good- that at least works. > > But you have no way to know when you've read > a empty line in a lexer routine that is reading > character by character. Yes you do... > What you end up having to do is to > test for line number changes instead-- yuk. ... if you read character by character, use the function Text_IO.End_Of_Line to detect the end of an input line. This works the same way in all systems, whatever line termination character (sequence), if any, is used. Follow with Skip_Line to go to the start of the next line. To return to the subject: I too often use 'Image for normal output, not just for debugging. And I find the extra blank annoying. But it is a very small annoyance, considering what else life offers :-) -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .