From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: why does this work? private new types.
Date: 09 May 2002 13:29:11 -0400
Date: 2002-05-09T17:35:38+00:00 [thread overview]
Message-ID: <u661x44d4.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 3cdaac5a.0@news.unibw-muenchen.de
"Kai Schuelke" <kai.schuelke@gmx.net> writes:
> > > type table is new tables.hash_table;
> [..]
> > 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.
>
> Does that mean that INSERT is an Operation like "+" or "mod"? Or is
> INSERT just a normal procedure? I can't imagine the last, but I never
> heard/read about an INSERT Operator, either. It would be nice is
> somebody could answer that question.
In Ada, the phrase "operation of a type" means any subprogram
that takes a parameter of the type or returns a result of the type.
The term "operator" refers to "+", "*" etc.
So INSERT is an "operation of type hash_table", but not an "operator".
And "+" is an operator, not an operation.
Every language has its own jargon :).
--
-- Stephe
next prev parent reply other threads:[~2002-05-09 17:29 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
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 [this message]
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