From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BAYES_00,FROM_ADDR_WS autolearn=no autolearn_force=no version=3.4.5-pre1 Date: 9 Sep 93 17:44:24 GMT 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 Message-ID: <26nmgr$jtg@jac.nuo.dec.com> List-Id: In article , groleau@e7sa.crd.ge.com (Wes Groleau x1240 C73-8) writes... >In article 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 . . . . . . . . . . . . . . .