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.8 required=5.0 tests=BAYES_00,PLING_QUERY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd360735bb97721d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-22 09:25:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: List of packages ?! Date: 22 May 2003 12:24:55 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3ECCD541.50200@alcatel.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 1053621644 19372 128.183.235.92 (22 May 2003 16:40:44 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 22 May 2003 16:40:44 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:37648 Date: 2003-05-22T16:40:44+00:00 List-Id: Mirko Aigner writes: > Hello I am a Student and I got the following problem. > I got c++ Code and now I should reimplement it in Ada. > My Problem is: I have a C++ Class only containing methods. In Ada this > is a package, right ?! Actually, a C++ class corresponds most closely to an Ada tagged type in a package. > In C++ I can create a list containing this methods-only-class, is > that possible for ada, too ?! Yes. Here is a "null data class with methods": package Null_Data_Class is type Object_Type is tagged null record; procedure Method_1 (Object : in Object_Type); procedure Method_2 (Object : in Object_Type); end Null_Data_Class; There are several list packages for Ada available; see www.adapower.com. > thanks for the help You're welcome. -- -- Stephe