TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

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

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

Print Reply
Subject:
From:
Samuel Mize <[log in to unmask]>
Reply To:
Samuel Mize <[log in to unmask]>
Date:
Mon, 8 Feb 1999 09:16:49 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
W. Wesley Groleau x4923 wrote:
>
> > - 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.
>
> You may want it in the private part to make it common to all child units.
> But you could just as easily put it in a private child and have the other
> child units with it.  But if you can't have an object of that type outside
> the package, is there any point in having the type visible?

Several later messages point out that you can declare one with an
initializer.

Aside from that, having it visible allows you to use it as a
parameter.  So a user program could get an item of this type
from a producer, modify it with procedures or extract data from
it with functions.

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