comp.lang.ada
 help / color / mirror / Atom feed
From: mheaney@ni.net (Matthew Heaney)
Subject: Re: record rep on tagged record question
Date: 1997/09/24
Date: 1997-09-24T00:00:00+00:00	[thread overview]
Message-ID: <mheaney-ya023680002409972226560001@news.ni.net> (raw)
In-Reply-To: 3428278b.18967041@SantaClara01.news.InterNex.Net


In article <3428278b.18967041@SantaClara01.news.InterNex.Net>,
tmoran@bix.com (Tom Moran) wrote:

>Shouldn't this be legal Ada 95?  One of the three compilers I tried
>gives a "raised CONSTRAINT_ERROR" when I try to execute it.  The
>message apparently comes from the attempt to elaborate
>"Picture:b.Child_Type", since neither the Ada.Text_IO in the main
>program nor the one in its exception handler produces any result.
>(The other two compilers both give "hi" results.)  I've checked and
>Tag'Size for this compiler is 32, so an offset of 4 bytes seems
>appropriate.

Why are you writing a representation clause for a tagged record anyway? 
Are you intending to do some I/O using this type?  Have you looked at the
stream I/O facility - it may do what you want without the rep clause (read:
portability) headaches.

--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271




  reply	other threads:[~1997-09-24  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-23  0:00 record rep on tagged record question Tom Moran
1997-09-24  0:00 ` Matthew Heaney [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-10-01  0:00 tmoran
1997-10-01  0:00 ` Tucker Taft
replies disabled

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