comp.lang.ada
 help / color / mirror / Atom feed
From: korisko <korisko@newsguy.com>
Subject: Re: Ada Type Information
Date: 1999/03/09
Date: 1999-03-09T00:00:00+00:00	[thread overview]
Message-ID: <7c3u1e$ct1@drn.newsguy.com> (raw)
In-Reply-To: 7bpohc$j2t$1@nnrp1.dejanews.com

In article <7bpohc$j2t$1@nnrp1.dejanews.com>, dewar@gnat.com says...
>
 
>Source
>------
>
>procedure q is
>   type r is record
>      a : integer := 0;
>      s : string (1 .. 5);
>      t : integer;
>   end record;
 
>Representation information for unit q
>--------------------------------------
>
>for r'Object_Size use 128;
>for r use record
>   a at  0 range  0 .. 31;
>   s at  4 range  0 .. 39;   <====== ??
>   t at 12 range  0 .. 31;
>end record;
 

hi,

is it hard to change -gnatR to make it also print the type of the field as 
well, maybe as a comment? 

something like
 
for r'Object_Size use 128;  
for r use record
    a at  0 range  0 .. 31;  -- Integer
    s at  4 range  0 .. 39;  -- String(1..5)
    t at 12 range  0 .. 31;  -- Integer
end record;

korisko




  parent reply	other threads:[~1999-03-09  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-05  0:00 Ada Type Information Sam Carnicelli
1999-03-05  0:00 ` dennison
1999-03-08  0:00   ` Sam Carnicelli
1999-03-08  0:00     ` dennison
1999-03-08  0:00       ` Sam Carnicelli
1999-03-09  0:00       ` robert_dewar
1999-03-05  0:00 ` dewar
1999-03-06  0:00   ` Tom Moran
1999-03-08  0:00     ` Sam Carnicelli
1999-03-08  0:00   ` Sam Carnicelli
1999-03-09  0:00     ` robert_dewar
1999-03-09  0:00   ` korisko [this message]
1999-03-05  0:00 ` Tom Moran
1999-03-05  0:00   ` Sam Carnicelli
replies disabled

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