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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,78cc8abd24f9e91f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-09 10:34:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: why does this work? private new types. Date: 09 May 2002 13:29:11 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3cdaac5a.0@news.unibw-muenchen.de> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1020965738 12622 128.183.220.71 (9 May 2002 17:35:38 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 9 May 2002 17:35:38 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:23789 Date: 2002-05-09T17:35:38+00:00 List-Id: "Kai Schuelke" 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