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,910a48a538936849 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: Re: how to import a package References: <1165371252.358817.57840@80g2000cwy.googlegroups.com> <1165449396.112251.129200@l12g2000cwl.googlegroups.com> Date: Thu, 07 Dec 2006 12:26:40 +1100 Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:4Vs6gSlRSMiEQV1Tul0zV1q6n2g= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: snoopy.microcomaustralia.com.au X-Trace: quokka.wn.com.au 1165454798 202.173.153.89 (7 Dec 2006 10:26:38 +0800) X-Complaints-To: abuse@westnet.com.au Path: g2news2.google.com!news1.google.com!news.germany.com!news.musoftware.de!quokka.wn.com.au!not-for-mail Xref: g2news2.google.com comp.lang.ada:7836 Date: 2006-12-07T12:26:40+11:00 List-Id: >>>>> "markww" == markww writes: markww> I thought that the following line: markww> package Person_List in new P (T => PERSON_REC) markww> is just instantiating one instance of the package called markww> Person_List. So the line: markww> Start : Person_List.Node_Ptr; In Ada, a package is not a type (unlike in, say Java where a class is a type and a package). So the above defines Start to of type Node_Ptr as found in the Person_List package. markww> doesn't make sense to me since it looks like 'Start' is markww> being defined as pointing to Person_List.Node_Ptr, when I markww> thought the right side of the colon must be a data type. Correct. -- Brian May