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,ab3fadb7cac7363c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!r33g2000prh.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: using `use' : what is the best practice ? Date: Tue, 7 Jun 2011 21:25:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: <70bda46e-e016-42e8-a0bb-7003ec1488ec@r33g2000prh.googlegroups.com> References: <57e75a35-058c-4172-9a3d-e11e7c5f7697@l2g2000prg.googlegroups.com> NNTP-Posting-Host: 75.172.177.214 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1307507153 13215 127.0.0.1 (8 Jun 2011 04:25:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 8 Jun 2011 04:25:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r33g2000prh.googlegroups.com; posting-host=75.172.177.214; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HURAECNK X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US) AppleWebKit/531.21.8+(KHTML, like Gecko, Safari/528.16) (null),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:19693 Date: 2011-06-07T21:25:09-07:00 List-Id: On Jun 7, 8:32=A0am, milouz wrote: > Hi guys, > Sorry with my annoying questions, but it's not easy to program in Ada > after 20 years programming in asm / C ;-) > For example, playing > with Address arithmetic Your questions are not annoying. This is off-topic, but you appear to be perhaps new to Ada. May I ask why you are looking into address arithmetic? Maybe this is a asm/C habit that you are transferring to Ada. I'm not an Ada expert but there may well be other ways to accomplish what you want without using address arithmetic which I believe is generally frowned upon except in certain circumstances. You might find record-representation clauses to be useful. Jerry