From: tmoran@bix.com
Subject: access aliased obstacle
Date: 1996/07/04
Date: 1996-07-04T00:00:00+00:00 [thread overview]
Message-ID: <4rfig3$l5d@news1.delphi.com> (raw)
To pass a data structure to an OS routine I tried
type elements(discriminant: enumeration_type:=normal_value) is record
case discriminant is
...
end record;
for elements'size use 64; -- size does not vary
type list_of_elements is array(1 .. 17) of aliased elements;
but one of my Ada 95 compilers objected to aliasing unless I make a
subtype with a specific discriminant value, which defeats the purpose.
The LRM appears to me to agree with this compiler. The only obvious
possibility is unchecked_conversion. What is the 'right' way?
next reply other threads:[~1996-07-04 0:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-04 0:00 tmoran [this message]
1996-07-04 0:00 ` access aliased obstacle Robert Dewar
1996-07-06 0:00 ` Laurent Guerby
1996-07-07 0:00 ` Robert A Duff
-- strict thread matches above, loose matches on Subject: below --
1996-07-09 0:00 tmoran
1996-07-09 0:00 ` Laurent Guerby
1996-07-09 0:00 ` Robert Dewar
1996-07-10 0:00 ` Robert A Duff
1996-07-09 0:00 ` Laurent Guerby
1996-07-09 0:00 ` Robert Dewar
1996-07-09 0:00 ` 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