comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: ASIS questions
Date: Tue, 09 Aug 2005 10:41:28 +0200
Date: 2005-08-09T10:41:28+02:00	[thread overview]
Message-ID: <p7q9dd.7kn.ln@hunter.axlog.fr> (raw)
In-Reply-To: <42f7cd81$1_4@newsfeed.slurp.net>

James Alan Farrell a �crit :
> Hi all,
> A couple questions on ASIS:
> 1. I have a variant record declaration.  I can find all the fields, 
> including those inside the case statement.  But I cannot find the 
> parameters.  How do I get the parameters of a variant record?
Asis.Declarations.Discriminant_Part

Note that these components are called "discriminants", not "parameters". 
That can explain why you didn't find them...

> 2. I have an record aggregate, and I need to find the record 
> declaration.  In particular, I need to know how many fields the record 
> contains when I have something like (A, B, others => C).  How do I find 
> the record declaration?
> 
Corresponding_Expression_Type of the Aggregate will return the 
corresponding type declaration.

-- 
---------------------------------------------------------
            J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



  reply	other threads:[~2005-08-09  8:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-08 21:22 ASIS questions James Alan Farrell
2005-08-09  8:41 ` Jean-Pierre Rosen [this message]
2005-08-09 14:10   ` James Alan Farrell
replies disabled

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