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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c9a5d6b3975624e1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-07 07:11:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: OO in Ada Date: Mon, 7 Oct 2002 10:10:27 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:29559 Date: 2002-10-07T10:10:27-04:00 List-Id: "SteveD" wrote in message news:JVrn9.40015$FO4.9224@sccrnsc03... > > In C++ there is a hidden "this" pointer quietly hiding in the background > that you must be very much aware of (if you're doing any serious > programming). In Ada this is an explicit variable passed into the > procedure. This is also true in Ada, wrt passing unconstrained arrays: procedure Op (S : String) is You're actually passing a descriptor on the stack, which contains info about the string's length and index range. So here there is "hidden" information being passed too, not unlike an implicit this-ptr in C++.