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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,78cc8abd24f9e91f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-06 08:00:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!oleane.net!oleane!nnrp.oleane.net!not-for-mail From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: why does this work? private new types. Date: Mon, 6 May 2002 16:57:22 +0200 Organization: Adalog Message-ID: References: NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s1.read.news.oleane.net 1020696999 12782 195.25.228.57 (6 May 2002 14:56:39 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Mon, 6 May 2002 14:56:39 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Xref: archiver1.google.com comp.lang.ada:23583 Date: 2002-05-06T16:57:22+02:00 List-Id: "chris.danx" a �crit dans le message news: MmwB8.927$hg3.319129@news11-gui.server.ntli.net... > > type table is new tables.hash_table; >[...] > insert is defined in hash_tables, so why can it be used in the body of blah > without "using" it? Is it implicitly "used" when table is defined as a > 'new' hash_table (i.e. it's allowed to be used . That'd kindof make sense, > but is this the correct way to think of it, or is there a better way? > When you derive a type, all derived operations are declared *at the point of derivation*. Therefore, the Insert for Table is declared immediately inside your package, and thus directly visible. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr