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: a07f3367d7,9506bdc34331969a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.netcologne.de!newsfeed-fusi2.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: put of access type Date: Thu, 20 Aug 2009 16:18:21 +0100 Message-ID: References: <8sho8596j3qnja38id9ipejk0opkcn5b5m@4ax.com> <68e68a01-eca6-4f17-9496-cc5d2eee7113@k26g2000vbp.googlegroups.com> <0gap85troslh5llfuiou61m67piv187fdr@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net 1zp/gMVHQMjY+9GZ9v7qIgk3dntXoJxVGFGOG9rIQ7EM+pM/IW Cancel-Lock: sha1:F1rrznoUWH1fH3Ac9kf08pHzDWQ= User-Agent: Microsoft-Entourage/12.20.0.090605 Thread-Topic: put of access type Thread-Index: AcohqXPURDhlftobn0y5vRqIGf6PMQ== Xref: g2news2.google.com comp.lang.ada:7907 Date: 2009-08-20T16:18:21+01:00 List-Id: On 20/08/2009 02:54, in article 0gap85troslh5llfuiou61m67piv187fdr@4ax.com, "Rob Solomon" wrote: > procedure adr is > > type card32 is mod 4_294_967_296; Better, type card32 is mod 2**32; Ada is not Modula-2++. > .... > Ada.Strings.Fixed.Move(Integer_Address'Image(To_Integer(P1.all'Address)),Str); > Move(System.Address_Image(P1.all'address),s); > C := > card32'value(Integer_Address'Image(To_Integer(P2.all'Address))); > K := > card32'value(Integer_Address'Image(To_Integer(P3.all'Address))); > What am I missing? That this is a complete waste of time if you want to learn *Ada* ? -- Bill Findlay chez blueyonder.co.uk