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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a7c3a94f09fe8fda X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: ada question Date: Thu, 31 Mar 2011 18:33:14 -0700 Organization: Aioe.org NNTP Server Message-ID: References: <828611a2-09fb-49db-8de1-2bcbe6c875e7@z3g2000prz.googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:19615 Date: 2011-03-31T18:33:14-07:00 List-Id: On 3/31/2011 4:40 PM, Robin wrote: > how can you output an integer in ada without trailing new lines? it is > kinda hard to figure out. HEy thanks and fix probs. Do you mean the extra space BEFORE the integer? I did small example, and do not see an extra newline, but see extra space only. ------------------- with ada.text_io; use ada.text_io; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure t is A: constant array (1..4) of integer :=(2,3,4,5); begin for i in A'range loop put(integer'image(A(i))); new_line; end loop; for i in A'range loop put(A(i)); new_line; end loop; end t; --------------------------- When I run the above, I get: --------------------------- 2 3 4 5 2 3 4 5 $ ----------------------- Is this what you mean? --Nasser