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,d84bea4ad7f9234a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-06 06:54:59 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail From: "DuckE" Newsgroups: comp.lang.ada References: Subject: Re: Package Question [Newbie] X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Fri, 06 Jul 2001 13:54:58 GMT NNTP-Posting-Host: 24.248.45.203 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 994427698 24.248.45.203 (Fri, 06 Jul 2001 06:54:58 PDT) NNTP-Posting-Date: Fri, 06 Jul 2001 06:54:58 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:9547 Date: 2001-07-06T13:54:58+00:00 List-Id: "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? Not really. If you want to draw a parallel, I think a package is more like a C++ namespace (although I don't know namespaces that well). The "tagged type" in Ada is similar to C++ classes, but in Ada the "this" pointer is explicit. SteveD > 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