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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,826cd690cb6a7585 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!l4g2000vbv.googlegroups.com!not-for-mail From: milouz Newsgroups: comp.lang.ada Subject: Re: Address and bit mask Date: Tue, 30 Aug 2011 09:08:35 -0700 (PDT) Organization: http://groups.google.com Message-ID: <904e717e-da4c-46c9-bbc2-4bae8368d459@l4g2000vbv.googlegroups.com> References: NNTP-Posting-Host: 82.124.211.130 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1314720619 28184 127.0.0.1 (30 Aug 2011 16:10:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 30 Aug 2011 16:10:19 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l4g2000vbv.googlegroups.com; posting-host=82.124.211.130; posting-account=2RsWdAoAAACKmfJMpyMjxrxuBA0nNyCZ User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKRUAELSC X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.107 Safari/535.1,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:21725 Date: 2011-08-30T09:08:35-07:00 List-Id: Thank you very much for all your answers ! They are all very detailed and I feel that I have a better grasp of how to program with Ada now. But something still puzzles me... I'm ok when Adam B. says: > asking "How do I write this C code in Ada" is the WRONG approach. But, let me develop... In C, it's rather easy to know how to do something because 1/ the langage is so simple and 2/ there are some many helpful resources (K&R, glibc source code or whatever else, man pages, Stevens's books...). I talk here about C but it's rather the same with Python, Perl, C++ or Java. In Ada, I found nothing similar and even finding howto do a kind of 'printf("%x"...)'... hum, sorry... displaying an Integer in hexa, is difficult. The ARM is a load of 800 pages with no example (it's a reference manual. how would learn C by reading ISO/CEI 9899:1999 ?). J.Barnes book might be great but... waiting 571 pages to learn how to display "hello, world" on a screen is a bit discouraging. Don't get me wrong, I'm convinced Ada is great. But what is the proper way to learn Ada ?