comp.lang.ada
 help / color / mirror / Atom feed
From: James Alan Farrell <jfarrell@nospam.com>
Subject: Re: ASIS questions
Date: Tue, 09 Aug 2005 10:10:32 -0400
Date: 2005-08-09T10:10:32-04:00	[thread overview]
Message-ID: <42f8b9b7$1_2@newsfeed.slurp.net> (raw)
In-Reply-To: <p7q9dd.7kn.ln@hunter.axlog.fr>

[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]

Jean-Pierre Rosen wrote:
> 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...
> 

I was look through asis.definitions and rying everything that had to do 
with variants.  No wonder!  :)

>> 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.
> 
I swear I tried that yesterday and it didn't work.  Today it does.  Must 
have gotten something wrong somewhere before calling 
corresponding_expression_type.

Thanks for your help!
JAF

[-- Attachment #2: jfarrell.vcf --]
[-- Type: text/x-vcard, Size: 88 bytes --]

begin:vcard
fn:James Alan Farrell
n:Farrell;James
org:GrammaTech
version:2.1
end:vcard


      reply	other threads:[~2005-08-09 14:10 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
2005-08-09 14:10   ` James Alan Farrell [this message]
replies disabled

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