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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,61006929d3e14455 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.tele.dk!not-for-mail Sender: malo@0x5358c09e.boanxx18.adsl-dhcp.tele.dk Newsgroups: comp.lang.ada Subject: Re: Ada Pointer Size Problem References: <35f054ea.0410101150.25bec2f5@posting.google.com> <6Joad.8869$UP1.8086@newsread1.news.pas.earthlink.net> From: Mark Lorenzen Date: 22 Oct 2004 20:05:31 +0200 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: TDC Totalloesninger NNTP-Posting-Host: 83.88.192.158 X-Trace: 1098468296 dtext02.news.tele.dk 160 83.88.192.158:38045 X-Complaints-To: abuse@post.tele.dk Xref: g2news1.google.com comp.lang.ada:5648 Date: 2004-10-22T20:05:31+02:00 List-Id: Jeffrey Carter writes: > Dave Thompson wrote: > > > On Mon, 11 Oct 2004 05:18:58 GMT, Jeffrey Carter > > wrote: > >> In C/++, a pointer is an int is an address. In Ada, they're 3 > >> different things. > > But (unlike its predecessor B) a C pointer/address is not just an > > int. > > I meant that a pointer is an int because you can always convert/assign a > pointer to an int. You can do that in Ada also. See ARM 3.7.1.(10) and 3.7.1.(13). This does of course not mean that a value of type Address is an integer subtype. - Mark Lorenzen