comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: converting pointer to value
Date: Thu, 4 Mar 2021 13:00:46 -0800 (PST)	[thread overview]
Message-ID: <29d7b43c-12d1-4104-9f3e-53b0429e6b0an@googlegroups.com> (raw)
In-Reply-To: <lylfb2hea8.fsf@pushface.org>

On Thursday, March 4, 2021 at 1:09:24 PM UTC-7, Simon Wright wrote:
> Shark8 writes: 
> 
> > if they did not have the same representation you would 
> > have to use UNCHECKED_CONVERSION
> and you'd be in a world of pain
Not necessarily, as the registers of x86 show with AX overlaid upon AH+AL, absolutely not the same representation, unchecked_conversion (or address-overlay) would be a perfectly fine way to model the situation.
But the given situation: a 16-bit integer and an address-type? / That's just asking for pain.

  reply	other threads:[~2021-03-04 21:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-04 15:59 converting pointer to value Björn Lundin
2021-03-04 16:50 ` Dmitry A. Kazakov
2021-03-05  7:06   ` Björn Lundin
2021-03-05  7:44     ` Dmitry A. Kazakov
2021-03-05  9:10       ` Björn Lundin
2021-03-04 16:55 ` Shark8
2021-03-04 17:35   ` Dmitry A. Kazakov
2021-03-04 19:38     ` Shark8
2021-03-04 21:27       ` Dmitry A. Kazakov
2021-03-05  8:58         ` Björn Lundin
2021-03-05  8:54     ` Björn Lundin
2021-03-05 11:02     ` Björn Lundin
2021-03-05 11:57       ` Björn Lundin
2021-03-05 14:00         ` Dmitry A. Kazakov
2021-03-09 12:07     ` [SOLVED] " Björn Lundin
2021-03-04 20:09   ` Simon Wright
2021-03-04 21:00     ` Shark8 [this message]
2021-03-05  8:59       ` Björn Lundin
2021-03-05  7:10   ` Björn Lundin
replies disabled

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