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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f665aa42f0658d4c X-Google-Attributes: gid103376,public From: ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe) Subject: Re: In Ada, is it possible to print an array on the screen without a loop? Date: 1997/07/10 Message-ID: <5q29dm$noi$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 255925287 References: <01bc8c7f$e29ce6c0$25bad084@SbastienGemme.uqam.ca> <19970709204301.QAA20565@ladder02.news.aol.com> Organization: Comp Sci, RMIT University, Melbourne, Australia. Newsgroups: comp.lang.ada NNTP-Posting-User: ok Date: 1997-07-10T00:00:00+00:00 List-Id: "SG" writes: > In ada, is it possible to print an array > on the screen without a loop? johnherro@aol.com (John Herro) writes: >Text_IO.Put_Line( > "Of course! ... if the array happens to be a string! :-) "); >-- ...but in general, I think the answer is no. Clearly there has to be a loop _somewhere_, but this answer is somewhat misleading. It doesn't follow that _SG_ has to write the loop. It is possible to write a generic procedure, and then SG just has to instantiate it once. The only reason I've never bothered to do this is that there are a lot of issues in formatting an array that don't arise in formatting a single item. -- Four policemen playing jazz on an up escalator in the railway station. Richard A. O'Keefe; http://www.cs.rmit.edu.au/%7Eok; RMIT Comp.Sci.