comp.lang.ada
 help / color / mirror / Atom feed
From: arny@cbnewsl.ATT.COM (arny.b.engelson)
Subject: Re: Questions on Ada...
Date: 11 Jul 89 19:41:26 GMT	[thread overview]
Message-ID: <1067@cbnewsl.ATT.COM> (raw)
In-Reply-To: 4611@omepd.UUCP

In article <4611@omepd.UUCP> vladimir@inteloc.UUCP (Vladimir G. Ivanovic) writes:
>In article <979@cbnewsl.ATT.COM> arny@cbnewsl.ATT.COM (arny.b.engelson) writes:
>>There is more than one way to do this.  One alternative is to use overlays.
>>Simply declare an integer array of the proper length, use an address clause
>>to overlay it at the location occupied by the structure you are copying
>>from, and copy it to an integer array overlaid at the destination address.
>>Another alternative is to use unchecked conversion from one type to another.
>>Again, the Ada purists will be up in arms (overlays are officially erroneous),
>>but the concept is very useful in some situations.

>I agree about the utility, but disagree about the "officially erroneous"
>comment attributed to Ada purists.  In fact, I'd say there are entire classes
>of problems that cannot be solved without using Unchecked_Conversion. 

Read my original posting more carefully.  I did not say that Unchecked_
Conversion was erroneous.  I said overlays are erroneous, and they do
not use U_C.  Read LRM 13.5:8.

  - Arny Engelson   att!wayback!arny

  reply	other threads:[~1989-07-11 19:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-06-29  3:33 Questions on Ada Krishan M Nainani
1989-07-03 13:51 ` arny.b.engelson
1989-07-06 19:02   ` Vladimir G. Ivanovic
1989-07-11 19:41     ` arny.b.engelson [this message]
1989-07-05 23:42 ` John Rogers
replies disabled

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