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-Thread: 103376,131f06967722ab4b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada 2005? Date: Mon, 20 Dec 2004 21:10:59 +0100 Organization: cbb software GmbH Message-ID: <20xbhf8rjd33.t7dojmf0ky12.dlg@40tude.net> References: <1103344064.372396.51420@c13g2000cwb.googlegroups.com> <1n1v6175zrtcc.2g6ewdvu7ei5$.dlg@40tude.net> <1103568585.285484.237450@c13g2000cwb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net 9TNy/7wDX8EZr4UETyMJXAsA5seKfArs1bI9Ac5FaNmfJT150= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:7102 Date: 2004-12-20T21:10:59+01:00 List-Id: On 20 Dec 2004 10:49:45 -0800, conradwt@runbox.com wrote: > In C++, the word, 'class', is a keyword that one uses to construct > object or instance definitions. You mean type definition? In C++ class {...}; defines a special kind of types. > Also, it is very clear as to what > you're trying to do when you see this in the source. Thus, I guess > that you're saying that Copy is a static member instead of an instance > member. Copy is a friend, but they are not methods. C++ does not support multiple dispatch. The point is that: 1. Prefix notation is misleading 2. Methods do not belong to classes 3. (Implied by 2) class definition brackets is a nonsense. This is why Ada has more flexible rules for the scope where primitive operations can be declared. Namely: in the same file, but before any non-trivial use. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de