TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Date: Tue, 5 Dec 2000 09:40:21 +0000
In-Reply-To: <[log in to unmask]>
MIME-version: 1.0
Parts/Attachments: TEXT/PLAIN (20 lines)
Stephane Richard wrote:
> But the fact of the matter remains, I need
> lists of data, an array or a linked list, whichever, and I need that list
> available throughout the rest of the packages somehow.
> Now instead of stopping your comment at telling me that this design is
> bad, that global variables bring global famine, let me assure you that list I
> am talking about is NOT a food shopping list :-). Why dont you detail
> yourself and bring me the other alternatives and possible solutions.  If you
> of a way to obtain this availability without the use of global variables then
> please, by all means, do let me know so that I may do this the right way.

Another question is whether the list(s) are accessed by tasks (I seem to
remember you mentioned you have 5 packages which each perform a specific task.
In the context, it didn't sound like you meant task as in Ada task). If they
are, you probably want to use (a) protected object(s).