comp.lang.ada
 help / color / mirror / Atom feed
From: joe@petsd.UUCP (Joe Orost)
Subject: Re: Record rep specs for private components
Date: 20 Jun 89 13:06:12 GMT	[thread overview]
Message-ID: <1635@petsd.UUCP> (raw)
In-Reply-To: 523@ajpo.sei.cmu.edu

In article <523@ajpo.sei.cmu.edu> eberard@ajpo.UUCP writes:
>If type a.aa is private, then its underlying implementation should be
>unknown outside of package a. This means that it should be impossible
>for another program unit to specify how much space an instance of this
>type should take up. [Of course, package a could supply operations
>which could provide alternative representations of known sizes, and
>these could be used in other program units.]
>
>In short, if the rep spec is legal Ada, it should not be, and should
>be fixed in Ada 9X.

According to AI-00551/02 (DRAFT):

"If a component type is a private type, the size allowed in a component
clause for the type is determined by applying the above rules to the full
declaration of the private type."

I agree.

				regards,
				joe

--

 Full-Name:  Joseph M. Orost
 UUCP:       rutgers!petsd!joe
 ARPA:	     petsd!joe@RUTGERS.EDU, joe@PETSD.CCUR.COM
 Phone:      (201) 758-7284
 US Mail:    MS 322; Concurrent Computer Corporation; 106 Apple St
             Tinton Falls, NJ 07724

  reply	other threads:[~1989-06-20 13:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-06-18 14:30 Record rep specs for private components Edward Berard
1989-06-20 13:06 ` Joe Orost [this message]
1989-06-23 19:57   ` Goodenough
1989-06-24 16:30     ` Edward Berard
  -- strict thread matches above, loose matches on Subject: below --
1989-06-10  0:16 Joe Orost
1989-06-17 16:43 ` Joe Orost
replies disabled

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