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,826cd690cb6a7585 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!y4g2000vbx.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Address and bit mask Date: Tue, 30 Aug 2011 12:37:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <904e717e-da4c-46c9-bbc2-4bae8368d459@l4g2000vbv.googlegroups.com> NNTP-Posting-Host: 20.133.0.8 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1314733031 27204 127.0.0.1 (30 Aug 2011 19:37:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 30 Aug 2011 19:37:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y4g2000vbx.googlegroups.com; posting-host=20.133.0.8; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESRCFNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20100101 Firefox/7.0,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:21733 Date: 2011-08-30T12:37:11-07:00 List-Id: On Aug 30, 5:08=A0pm, milouz wrote: > 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 ? Start by heading to http://www.adaic.org/learn/ and http://www.adaic.org/learn/materials/#ada_95_books On that last page there are 3 Ada95 ebooks - that's a start! :-) Also wiki has lots of links (http://en.wikibooks.org/wiki/ Ada_Programming including http://en.wikibooks.org/wiki/Ada_Programming/Basi= c) is or Rosetta (http://rosettacode.org/wiki/Category:Ada) may be useful. HTH -- Martin