comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How to get the mouse position with JEWL?
Date: Fri, 22 Oct 2010 09:35:56 +0200
Date: 2010-10-22T09:35:53+02:00	[thread overview]
Message-ID: <1bj1nrjki5whg.4lon33snqtk0$.dlg@40tude.net> (raw)
In-Reply-To: i9qmfq$t12$1@speranza.aioe.org

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



  reply	other threads:[~2010-10-22  7:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-20  9:04 How to get the mouse position with JEWL? tolkamp
2010-10-20 11:42 ` Manuel Collado
2010-10-20 17:20   ` tolkamp
2010-10-20 22:22     ` Manuel Collado
2010-10-20 22:51       ` tmoran
2010-10-21  2:59         ` Jeffrey Carter
2010-10-21  4:08           ` tmoran
2010-10-21  7:31         ` Dmitry A. Kazakov
2010-10-21 19:10           ` tmoran
2010-10-21 19:38             ` Dmitry A. Kazakov
2010-10-22  0:39               ` tmoran
2010-10-22  7:35                 ` Dmitry A. Kazakov [this message]
2010-10-22 10:10                 ` Frank J. Lhota
2010-10-21 15:23         ` tolkamp
2010-10-21 16:47           ` Georg Bauhaus
2010-10-21 17:09             ` tolkamp
2010-10-21 17:24               ` Niklas Holsti
2010-10-21 20:34         ` tolkamp
2010-10-22 13:55       ` tolkamp
2010-10-22 22:15         ` Manuel Collado
2010-10-23 15:26           ` tolkamp
2010-10-21 21:50 ` Manuel Collado
2010-10-22 10:40   ` tolkamp
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox