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: a07f3367d7,be6e28f854440947 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!weretis.net!feeder2.news.weretis.net!news.musoftware.de!wum.musoftware.de!news.mind.de!bolzen.all.de!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How to get the mouse position with JEWL? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1dbwvwvv5nn1h.1s4mepzsbnf54.dlg@40tude.net> Date: Fri, 22 Oct 2010 09:35:56 +0200 Message-ID: <1bj1nrjki5whg.4lon33snqtk0$.dlg@40tude.net> NNTP-Posting-Date: 22 Oct 2010 09:35:53 CEST NNTP-Posting-Host: 8b08a428.newsspool1.arcor-online.net X-Trace: DXC=KGc]jYRDCfBWDmlTRbh@=Iic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgBXeEk@>I_9LH[6LHn;2LCVN7enW;^6ZC`D\`mfM[68DCCe8:EW`\SUbC X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:14669 Date: 2010-10-22T09:35:53+02:00 List-Id: On Fri, 22 Oct 2010 00:39:22 +0000 (UTC), tmoran@acm.org wrote: >>> 3. My copy of win32.ads declares >>> subtype PVOID is System.Address; >>> System.Address is not the same as an access value to my preferred Ada >>> compiler. >> >> But PVOID is an address, if an Ada's access type is not, then it cannot be >> used for PVOID. > An "address" on a Wintel architecture is a segment and an offset. > (remember memory models?) Yes. But Win32 has flat memory model, so PVOID is must be a far pointer at least. [ BTW, it is not certain what is "address", virtual? physical? The OS API may remap process addresses to the kernel ones etc. ] > So Janus Ada's System.Address is a segment > and an offset. PVOID is a C pointer, which is only an offset, the same as > an Ada access value in Janus Ada. There is no reason why Ada access type (without the Convention pragma) should be equivalent to C pointer. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de