comp.lang.ada
 help / color / mirror / Atom feed
From: pa.dec.com!jac.nuo.dec.com!digits.enet.dec.com!brett@decwrl.dec.com  (Bev in R. Brett)
Subject: Re: Generic Pointer Type
Date: 9 Sep 93 17:44:24 GMT	[thread overview]
Message-ID: <26nmgr$jtg@jac.nuo.dec.com> (raw)

In article <CD3DMI.JJA@crdnns.crd.ge.com>, groleau@e7sa.crd.ge.com (Wes Groleau
 x1240 C73-8) writes...
>In article <EMERY.93Sep8133649@goldfinger.mitre.org> emery@goldfinger.mitre.or
g (David Emery) writes:
>>There is no guarantee *within the language* that any unchecked
>>conversion will have any meaning.  In particular, there are systems
>>where you *cannot* convert between arbitrary access types in any
>>meaningful sense.  For instance, access to scalar may be the address
>>of the object, but access to array may be a structure holding the
>>first index, length and address of the first element.  .......
> 
>This reminds me of another mistake made by many:  doing an unchecked conversio
n
>between an access type for an object and the address of an object of the same
>type.  Even if access types are addresses (they USUALLY are...) the access to
>an array is often the address of a structure like the one David mentioned,
>while the address of the array is actually the address of the array.

The DEC Ada compilers issue warnings in such situations.

/Bevin

ps: All the rest of this message is designed to fool some stupid piece of s/w
into posting the above, even though it is mainly a quote
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

             reply	other threads:[~1993-09-09 17:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-09 17:44 Bev in R. Brett [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-09-09 14:59 Generic Pointer Type Wes Groleau x1240 C73-8
1993-09-08 19:25 cis.ohio-state.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!progers
1993-09-08 18:36 David Emery
1993-09-08 15:51 cis.ohio-state.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!progers
1993-09-07 19:18 dog.ee.lbl.gov!agate!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!swrind
1993-09-07 15:58 Norman H. Cohen
1993-09-04  0:17 Robert Dewar
replies disabled

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