From: guerby@gnat.com (Laurent Guerby)
Subject: Re: access aliased obstacle
Date: 1996/07/09
Date: 1996-07-09T00:00:00+00:00 [thread overview]
Message-ID: <ws920ilyp94.fsf@schonberg.cs.nyu.edu> (raw)
In-Reply-To: 4rsmn6$hvc@news1.delphi.com
Robert> Not quite right, there is no reason why a discriminant in a
Robert> variant record should be stored "in the record" in Ada, that
Robert> is just a (common) implementation choice. In fact if you are
Robert> using sub types extensively it is attractive to choose an
Robert> alternative representation where the discriminants are stored
Robert> separately,
The idea is that there are stored somewhere, "in the record" is an
unfortunate wording ;-). BTW, is there any compiler that use the
alternative you proposed ? How to get the following right without
storing "in the record"?
type T (D : boolean) is null record;
function F return T is
begin
return T'(True);
end F;
begin
if F.D then ...
end;
--
Laurent Guerby <guerby@gnat.com>, Team Ada.
"Use the Source, Luke. The Source will be with you, always (GPL)."
next prev parent reply other threads:[~1996-07-09 0:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-09 0:00 access aliased obstacle tmoran
1996-07-09 0:00 ` Laurent Guerby
1996-07-09 0:00 ` Robert Dewar
1996-07-09 0:00 ` Laurent Guerby [this message]
1996-07-09 0:00 ` Robert Dewar
1996-07-10 0:00 ` Robert A Duff
1996-07-09 0:00 ` Robert Dewar
-- strict thread matches above, loose matches on Subject: below --
1996-07-04 0:00 tmoran
1996-07-04 0:00 ` Robert Dewar
1996-07-06 0:00 ` Laurent Guerby
1996-07-07 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox