From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!enother.net!enother.net!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx18.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:36.0) Gecko/20100101 Thunderbird/36.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What is your opinion on Global Objects? References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Tue, 18 Nov 2014 03:16:03 UTC Organization: TeraNews.com Date: Mon, 17 Nov 2014 20:16:03 -0700 X-Received-Bytes: 1240 X-Received-Body-CRC: 2588052756 Xref: news.eternal-september.org comp.lang.ada:23503 Date: 2014-11-17T20:16:03-07:00 List-Id: On 17-Nov-14 20:08, Hubert wrote: > I guess in Ada you could have a package with a type and a variable in > the body but you would still need a way to access that variable somehow > in other packages, either through a parameter or globally and that's my > question. What is the best way to access such an object Generics? You could have everything that depends on that singleton have its package (or accessor-function) passed in as a parameter.