From: Mendal@SU-SIERRA.ARPA (Geoff Mendal)
Subject: subaggregates???
Date: Sun, 9-Feb-86 02:55:43 EST [thread overview]
Date: Sun Feb 9 02:55:43 1986
Message-ID: <8602090804.AA11771@ucbvax.berkeley.edu> (raw)
Hi all,
We have a question concerning subaggregates. Consider the following
program...
procedure Agg is
type R is
record
X : String (1 .. 2) := (others => 'z');
Y : String (5 .. 6) := (others => 'z');
end record;
A : R;
begin
A := (others => (others => 'a'));
A := (X | Y => (others => 'a'));
A := ((others => 'c'), (others => 'c'));
end Agg;
Now the question is: Should any of these assignments raise
Constraint_Error? The Data General raises Constraint_Error on the
first two but not on the third. Is the subaggregate
(others => 'a')
in the first (and second) assignment evaluated once or twice?
Do things change if the components X and Y are of different lengths?
thanks in advance to anybody who has the slightest idea,
doug bryan and Geoff Mendal
-------
next reply other threads:[~1986-02-09 7:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1986-02-09 7:55 Geoff Mendal [this message]
1986-02-11 19:03 ` subaggregates??? Jon M. Holdman
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox