comp.lang.ada
 help / color / mirror / Atom feed
* Making guarantees about record components
@ 2013-11-19 18:49 J Kimball
  2013-11-19 20:20 ` Anh Vo
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: J Kimball @ 2013-11-19 18:49 UTC (permalink / raw)


Hello

I'm trying to guarantee that two record component values map to the same
value of another type.

type A is (...);
type C is (...);

M : array (A) of C := (...);

type R is record
   A1 : A;
   A2 : A;
end record
   with Dynamic_Predicate => (M (R.A1) = M (R.A2) );

Is this the best solution we have as of Ada 2012?

Regards


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-11-22  5:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19 18:49 Making guarantees about record components J Kimball
2013-11-19 20:20 ` Anh Vo
2013-11-19 22:57 ` Jeffrey Carter
2013-11-20  9:36   ` Stephen Leake
2013-11-20 17:37     ` Jeffrey Carter
2013-11-21  6:53       ` Stephen Leake
2013-11-20 20:58   ` tmoran
2013-11-19 23:38 ` Shark8
2013-11-20  8:01   ` Dmitry A. Kazakov
2013-11-22  5:46 ` J Kimball

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox