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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fc7fc1b95198137d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-29 15:15:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Ada Address = C pointer ? References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Mon, 29 Oct 2001 23:15:03 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 1004397303 24.7.82.199 (Mon, 29 Oct 2001 15:15:03 PST) NNTP-Posting-Date: Mon, 29 Oct 2001 15:15:03 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:15383 Date: 2001-10-29T23:15:03+00:00 List-Id: >very surprised if System.Address had a different representation from char* >or void*. Hold onto your hat! The program with system; with ada.text_io; procedure junk is x : integer; a : constant system.address := x'address; package sio is new ada.text_io.integer_io(system.word); package oio is new ada.text_io.integer_io(system.offset_type); begin sio.put(a.segment, base=>16); oio.put(a.offset, base=>16); ada.text_io.new_line; end junk; compiles (Janus compiler) and runs, producing 16#157# 16#60FCD4# on the Windows 95 system I'm posting from.