comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.A.Leake@nasa.gov>
Subject: Re: Variant Record Component
Date: 26 Feb 2003 14:08:41 -0500
Date: 2003-02-26T19:22:35+00:00	[thread overview]
Message-ID: <uof4y507a.fsf@nasa.gov> (raw)
In-Reply-To: 3E5D00D6.F6A20AD2@boeing.com

John Harbaugh <john.s.harbaugh2@boeing.com> writes:

> Hi, all -
> 
> Is there a way to determine if an object of some variant record type
> contains a specific variant component, other than a trying it and
> handling a possible constraint error?  I looked for something like and
> "in" operator or suitable attribute, but found nothing.

The discriminant of a variant record tells you what components are
present, but that information is essentially hard-coded everywhere.

It sounds like you want to do introspection or something. ASIS is
good for that, but not at run time.

Perhaps if you give a higher level view of what you are trying to do,
I could be more helpful.

-- 
-- Stephe



  reply	other threads:[~2003-02-26 19:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-26 18:00 Variant Record Component John Harbaugh
2003-02-26 19:08 ` Stephen Leake [this message]
2003-02-27  8:17   ` Anders Wirzenius
2003-02-27  8:46     ` John McCabe
2003-02-27 17:26     ` phone number database Stephen Leake
2003-02-27 18:09       ` tmoran
2003-02-28  0:07       ` Matthew Heaney
2003-02-28  6:46       ` Hijacking threads (was phone number database (was Variant Record Component)) Anders Wirzenius
2003-02-26 20:50 ` Variant Record Component David C. Hoos
2003-02-28 16:15   ` John Harbaugh
2003-02-28 18:18     ` tmoran
2003-02-28 22:07       ` John Harbaugh
2003-02-28 20:51     ` Randy Brukardt
2003-03-01  2:34     ` Jeffrey Carter
2003-03-03  9:24     ` John McCabe
2003-02-26 21:37 ` tmoran
  -- strict thread matches above, loose matches on Subject: below --
2003-02-28 19:40 David C. Hoos
replies disabled

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