From: bhs@MITRE-BEDFORD.ARPA (Bev Sobelman)
Subject: Re: variant records
Date: Mon, 3-Nov-86 09:17:17 EST [thread overview]
Date: Mon Nov 3 09:17:17 1986
Message-ID: <8611031417.AA28139@mitre-bedford.ARPA> (raw)
In-Reply-To: 2886@rsch.WISC.EDU
This may apply to your constraint error problem:
When you declare a rec variable, are you using the default discriminant
and then reassigning the whole record, or are you overriding the
default when you declare the record variable? Consider these:
Rec_1 : rec (kind => B); -- this is a constrained record
--- VS ---
Rec_2 : rec; -- this is unconstrained with
. default discrim. = A
.
.
Rec_2 := (kind => B); -- now have discrim. = B, still
unconstrained
I haven't looked at the whole thing carefully enough to know whether
this would make a difference at position 'Z', but I thought it was
worth mentioning.
Bev Sobelman
bhs@mitre-bedford.arpa
next prev parent reply other threads:[~1986-11-03 14:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1986-10-31 9:08 variant records Dean Luick
1986-11-03 14:17 ` Bev Sobelman [this message]
1986-11-05 16:35 ` stuart
1986-11-06 15:40 ` stt
-- strict thread matches above, loose matches on Subject: below --
1999-09-14 0:00 Variant Records Shawn Barber
1999-09-14 0:00 ` Matthew Heaney
1999-09-14 0:00 ` David C. Hoos, Sr.
1999-09-14 0:00 ` Mark Lundquist
2004-02-15 22:51 Variant records Ganesh Ramasivan
2004-02-16 10:57 ` Preben Randhol
2004-02-16 15:25 ` Ganesh Ramasivan
2004-02-16 15:46 ` Ludovic Brenta
2004-02-16 16:16 ` Preben Randhol
2004-02-17 14:37 ` Ganesh Ramasivan
2004-02-17 15:43 ` Preben Randhol
2004-02-16 16:59 ` Ganesh Ramasivan
2004-02-16 20:14 ` Simon Wright
2004-02-17 14:56 ` Ganesh Ramasivan
2004-02-17 15:31 ` Robert I. Eachus
2004-02-16 23:17 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox