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:
Reply To:
Date:
Tue, 5 Dec 2000 09:40:21 +0000
Content-Type:
TEXT/PLAIN
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
know
> 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).

John

ATOM RSS1 RSS2