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: a07f3367d7,826cd690cb6a7585 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!o9g2000vbo.googlegroups.com!not-for-mail From: milouz Newsgroups: comp.lang.ada Subject: Re: Address and bit mask Date: Mon, 29 Aug 2011 09:33:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: <80d7ce1b-8621-47aa-8d03-4d168fd52b30@o9g2000vbo.googlegroups.com> References: <71159ccc-bf20-4fcf-a7f1-3b90629c1ecb@l4g2000vbv.googlegroups.com> <4b8745d2-11fa-4cd4-bfc3-127501bef0aa@eb1g2000vbb.googlegroups.com> NNTP-Posting-Host: 82.124.211.130 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1314635708 30241 127.0.0.1 (29 Aug 2011 16:35:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 29 Aug 2011 16:35:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o9g2000vbo.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: g2news1.google.com comp.lang.ada:20718 Date: 2011-08-29T09:33:29-07:00 List-Id: > To start with, check out package System.Storage_Elements. It at least > has To_Address/To_Integer subprograms. As far as I understand, your solution is to convert the address in address_integer, manipulating it, and then converting it in address. And all that stuff is because Address type is defined as private. Am I right ? > Size/range of addresses are rather target dependent, so I'm curious as > to what you wish to make 'portable'?... I mean a solution that works with the Address type without the need to redefine everything.