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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d54fc5b7ea8ef162 X-Google-Attributes: gid103376,public From: Samuel Mize Subject: Re: is everything child of Standard Package in Ada? Date: 1999/03/03 Message-ID: <7bhv05$1tbb@news3.newsguy.com>#1/1 X-Deja-AN: 450583352 References: <7bgu62$l31@drn.newsguy.com> <7bh1po$1ibb@news3.newsguy.com> Organization: ImagiNet Communications, Ltd. User-Agent: tin/pre-1.4-981002 ("Phobia") (UNIX) (AIX/3-2) Newsgroups: comp.lang.ada Date: 1999-03-03T00:00:00+00:00 List-Id: Samuel Mize wrote: > nabbasi@pacbell.net wrote: >> hi, >> >> is it implicit that every package in Ada is a 'child' of Standard package? >> >> i.e. is package Ada a child of Standard package for example? > > Yes, see ARM 10.1.1(1). Which will tell you nothing useful about this, but try here: ARM 10.1.1(1) Which says (using caps for italics): "Each library unit (except Standard) has a PARENT UNIT, which is a library package or generic library package. A library unit is a CHILD of its parent unit. The ROOT library units are the children of the predefined library package Standard." Also, 10.1.1(10): "The PARENT DECLARATION of a library item (and of the library unit) is the declaration denoted by the parent_unit_name, if any, of the defining_program_unit_iname of the library_item. If there is no parent_unit_name, the parent declaration is the declaration of Standard, the library_item is a root_library_item, and the library unit (renaming) is a ROOT library unit (renaming). ... The PARENT UNIT of a library_item or library unit is the library unit declared by its parent declaration." And in 10.1.1(11): "(Standard is an ancestor of every library unit.)" Having said this, let me re-emphasize that Standard is a special case, defined by the language. You cannot refer to its children with the child syntax, for example "Standard.Ada.Text_Io", although you can refer to "Standard.Boolean" if you want to. Best, Sam Mize -- Samuel Mize -- smize@imagin.net (home email) -- Team Ada Fight Spam: see http://www.cauce.org/ \\\ Smert Spamonam