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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!1.eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: text_io and grid printing Date: Thu, 17 May 2018 21:57:04 +0300 Organization: Tidorum Ltd Message-ID: References: <99bb4ea5-89be-4984-8785-574cb8e4a410@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 9HqTkpFJPlUqtw3K7rQrEQIOG3/NWIl4prZWH5mJGbMp0oL/L+ Cancel-Lock: sha1:gRuVEYY9jAOrQbZ1ZpvQbvrAvvU= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Xref: reader02.eternal-september.org comp.lang.ada:52404 Date: 2018-05-17T21:57:04+03:00 List-Id: On 18-05-17 19:43 , Jeffrey R. Carter wrote: > On 05/17/2018 04:51 PM, Mehdi Saada wrote: >> I wanted to use set_col and set_line to print things as in a grid, (to >> print a matrix) but it seems I was wrong ? >> Set_Col (1); Put ("1"); Set_Col (2); Put ("2"); Set_Col (3); Put ("3"); >> Gives "123" >> but Set_Col (2); Put ("2"); Set_Col (1); Put ("1"); Set_Col (3); Put >> ("3"); >> gives >> 2 >> 1 3 > > It's probably best to forget that Text_IO has those operations. I find Set_Col convenient for simple tabular output, even if it has to be used in increasing column order. But very weak compared to eg. HTML tables, of course. I don't remember ever using Set_Line. HTML output is a good compromise, IMO. I often use the XML EZ_Out package from www.mckae.com. But it, too, requires the program to generate table cells in left-to-right, top-down order. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .