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: 103376,8d5bda3619cce0f8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Tue, 17 Feb 2009 22:59:36 +0100 From: Thomas Locke User-Agent: Thunderbird 2.0.0.19 (X11/20081209) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: C getchar() functionality in Ada References: <4999ce31$0$90266$14726298@news.sunsite.dk> <%5lml.519385$TT4.153916@attbi_s22> <499a6607$0$90276$14726298@news.sunsite.dk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <499b3348$0$90271$14726298@news.sunsite.dk> Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 83.91.213.86 X-Trace: news.sunsite.dk DXC=QLU:Yjldlc?@g6i]76MRQ6YSB=nbEKnk;ebg1>^?UCA:]KcSoP8OK@8@kCUDmHHZ?5:WTk`c[X5;?B:[6GKGT2_l\0 X-Complaints-To: staff@sunsite.dk Xref: g2news1.google.com comp.lang.ada:3683 Date: 2009-02-17T22:59:36+01:00 List-Id: Jeffrey R. Carter wrote: > To learn about Ada, you shouldn't try to translate C programs. Rather, > you should state the requirements and figure out how to implement them > in Ada. It was not clear from your C program whether you wanted to know > how to implement a program to copy any kind of file, and were simply > mistaken in using Text_IO, or a program limited to text files, and the C > simply couldn't express that limitation. I understand. I'm not as such trying to "translate" C programs. I'm trying to redo them in Ada, the Ada way. So I guess you could say, that the functionality of the small C programs are my requirements, and I'm now trying to figure out how to implement that functionality in Ada. It is pretty clear to me now, that Ada.Text_IO is not the way to mimic this specific functionality, so already I can say that I've learned something new and, probably, important. :o) I will try hard to better explain my intentions in the future. Regards, /Thomas