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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d84bea4ad7f9234a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-06 07:54:53 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!newsfeed.mathworks.com!psiuk-p2!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Package Question [Newbie] Date: Fri, 6 Jul 2001 10:13:59 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9i4h3a$25c$1@nh.pace.co.uk> References: NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 994428842 2220 136.170.200.133 (6 Jul 2001 14:14:02 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 6 Jul 2001 14:14:02 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:9557 Date: 2001-07-06T14:14:02+00:00 List-Id: You can use packages to create classes, but the two are not exactly synonimous. Packages will do a lot more than just build classes. The "this" thing in C++ is sort of a kludge (IMHO) because everything in C++ wants to be a kind of binary operator function. (the syntax and semantics of all this are insane!) Really, you are better off not trying to find analogies to C++ in Ada because the concepts of how a language should work are very different. If you want to do OOP in Ada, learn about tagged types and subprograms within packages and you'll be well on your way. Look at http://www.adapower.org/ for all sorts of resources to help you learn Ada. This newsgroup will be very helpful to you as well. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "JM" wrote in message news:ssoakt067vi6drpdjatvp23qjqm94a7gak@4ax.com... > Hi, > > I'm still very green wrt to Ada but after looking at few tutorials a > have a couple of quick questions/observations. My background is C++ so > I'm grasping for commonalities. > > 1. It looks as though basically the package is a class? > > 2. And from a C++ point of view the package procedures are static > functions that operate on references to the package? So basically > 'this' doesn't exist? > > Thanks, > Jason