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,56131a5c3acc678e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-26 07:56:36 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Question about OO programming in Ada Date: 26 Nov 2003 10:54:20 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: shevek.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1069862328 28273 128.183.235.101 (26 Nov 2003 15:58:48 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 26 Nov 2003 15:58:48 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:2964 Date: 2003-11-26T15:58:48+00:00 List-Id: "Ekkehard Morgenstern" writes: > "Randy Brukardt" schrieb im Newsbeitrag > news:vs7eaf1kispja1@corp.supernews.com... > > "Ekkehard Morgenstern" wrote in > message > > > > > Like, when I declare a procedure > > > > > > procedure A ( B: in access all T'Class ) > > > > > > could I use a different method and still get all the benefits of Ada > > > object-oriented programming? > > > > Yikes! The "in" isn't allowed here, nor is the "all" -- they're both > > assumed. > > "in" is allowed, even if assumed. :-) Hmm. Never make statements like this without first running the code thru a compiler. Randy writes compilers and edits the Ada Language Reference Manual (you probably did not know this), so he knows what he's talking about. "in" is neither assumed nor allowed. > the "access all T'Class" part produces an error message with the > compiler, Always believe the compiler! Well, I've never met a compiler that I didn't find a bug in, but you should certainly start by assuming the compiler is correct. > but I meant that to be exemplary anyway (to save me from typing an > extra "type" statement). Ada, as you will discover, is _not_ for people who don't like typing "type" statements. There's nothing "extra" about them! -- -- Stephe