comp.lang.ada
 help / color / mirror / Atom feed
From: "Jean-Pierre Rosen" <rosen@adalog.fr>
Subject: Re: why does this work?  private new types.
Date: Mon, 6 May 2002 16:57:22 +0200
Date: 2002-05-06T16:57:22+02:00	[thread overview]
Message-ID: <ab65j7$cfe$1@s1.read.news.oleane.net> (raw)
In-Reply-To: MmwB8.927$hg3.319129@news11-gui.server.ntli.net

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]


"chris.danx" <spamoff.danx@ntlworld.com> 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





  reply	other threads:[~2002-05-06 14:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-06 14:24 why does this work? private new types chris.danx
2002-05-06 14:57 ` Jean-Pierre Rosen [this message]
2002-05-06 15:28   ` chris.danx
2002-05-09 17:05   ` Kai Schuelke
2002-05-09 17:17     ` David C. Hoos
2002-05-09 17:29     ` Stephen Leake
2002-05-10  2:14       ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox