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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news2.google.com!proxad.net!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Ada Pointer Size Problem Date: Thu, 21 Oct 2004 11:54:38 +0200 Organization: AdaCL Message-ID: <3606460.DgU2jkzDGy@linux1.krischik.com> References: <35f054ea.0410101150.25bec2f5@posting.google.com> <6Joad.8869$UP1.8086@newsread1.news.pas.earthlink.net> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1098356040 05 10826 8nkIXZU6GGoMy1c 041021 10:54:00 X-Complaints-To: usenet-abuse@t-online.de X-ID: E2UdYZZDweft0l--pi-iG8By4WV1iOrwj3dDGMnzqjTKVf78nVD+UN User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:5572 Date: 2004-10-21T11:54:38+02:00 List-Id: Jeffrey Carter wrote: > 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. Not on a 64 bit CPU. Most 64bit compiler have not expanded int to 64 bit (as they should have done). Only "intptr_t" and "uintptr_t" are large enough to store a pointer. If you use MS-C then activate /W64 and see what happens. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com