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 03:00:12 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!news-out.nibble.net!hub1.nntpserver.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!newsin.onlynews.com!easynews!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Package Question [Newbie] (in C++ terms) Message-ID: References: Organization: LJK Software Date: 6 Jul 2001 05:59:53 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 994413609 216.44.122.34 (Fri, 06 Jul 2001 10:00:09 GMT) NNTP-Posting-Date: Fri, 06 Jul 2001 10:00:09 GMT Xref: archiver1.google.com comp.lang.ada:9539 Date: 2001-07-06T05:59:53-05:00 List-Id: In article , JM writes: > 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. In general, you are ill-served to compare these two languages while trying to learn one of them. It is better if you learn the second language without reference to the first. When you have become proficient in the second, you may choose to make comparisons with the first (or not). > 1. It looks as though basically the package is a class? No, packages are independent of classes (but not vice versa). Try learning a bit about packages from a non-object-oriented viewpoint, and when you have that down add object orientation to the mix. > 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? You will do better in this newsgroup (and learning Ada in general) to pose questions in absolute terms rather than in terms of C++. If you are still burning with curiousity, a page called: The C++ To Ada Translation Page is among those listed at: http://www.adapower.com/articles/ I have great respect for the author of the page, but I don't give the direct URL, because at this point if there is one URL you need to keep in mind it is the AdaPower site.