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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c3cfb3fea725cf5,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!feed.news.tiscali.de!darth-vader.mobilixnet.dk!newsfeed.orangenet.dk!news.hacking.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Visibility rules and package names Date: 16 Oct 2004 22:26:15 +0200 Organization: hacking.dk - Doing fun stuff with open source Sender: sparre@sparre.crs4.it Message-ID: NNTP-Posting-Host: 80.241.165.49 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: xyzzy.adsl.dk 1097958495 2879 80.241.165.49 (16 Oct 2004 20:28:15 GMT) X-Complaints-To: usenet@news.hacking.dk NNTP-Posting-Date: Sat, 16 Oct 2004 20:28:15 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:5338 Date: 2004-10-16T22:26:15+02:00 List-Id: When I started thinking about structuring the GUI code for a project I am working on, I quickly came to a point where I had the following piece of code: package Project_Name is type Data_Type is null record; end Project_Name; package GtkAda is end GtkAda; package GtkAda.Project_Name is end GtkAda.Project_Name; with Project_Name; package GtkAda.Project_Name.Specialized_Widget is use type Project_Name.Data_Type; -- Problem! end GtkAda.Project_Name.Specialized_Widget; Since "Project_Name" refers to "GtkAda.Project_Name" in child packages of "GtkAda.Project_Name" this will not compile. Is there a way to refer to package "Project_Name" inside children of "GtkAda.Project_Name"? Or will I have to rename one of the packages "GtkAda.Project_Name" and "Project_Name"? Jacob -- "[...] *transfer* a bit of salary from the person who writes a bug to the person that finds a bug..." -- Keith Ray