TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Samuel Mize <[log in to unmask]>
Fri, 5 Feb 1999 10:10:37 -0600
text/plain (28 lines)
Ben Brosgol wrote:
> Rick's message below implies that there is some contradiction between my
> suggestion: ...
> and Steve Deller's observation

I thought so too, at first, but I think he simply meant that there
are two approaches.

Two detail points, which I throw to the list so someone can correct
it if I'm mistaken:

- the indefinite private type that Ben pointed out is (I believe)
  new for Ada 95, so if you're working in Ada 83 you'll have to
  use one of the other approaches.

- if the type is indefinite, you can't declare an object of that
  type.  Of course, the full declaration makes it definite inside
  the private parts of the package.  But you can't have an object
  of that type outside the package.  This may be a problem or a
  feature, depending on exactly what you're trying to do.

Best,
Sam Mize

--
Samuel Mize -- [log in to unmask] (home email) -- Team Ada
Fight Spam: see http://www.cauce.org/ \\\ Smert Spamonam

ATOM RSS1 RSS2