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-Thread: 103376,ccb21d128bf5f2ae X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: newbie - OOP in Ada Set and Get Methods Date: Tue, 28 Dec 2004 21:17:39 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1104237673.373489.128290@z14g2000cwz.googlegroups.com> <1104251213.061878.187430@f14g2000cwb.googlegroups.com> <1104255406.015130.138150@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: host81-152-56-142.range81-152.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: titan.btinternet.com 1104268659 10206 81.152.56.142 (28 Dec 2004 21:17:39 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Tue, 28 Dec 2004 21:17:39 +0000 (UTC) In-Reply-To: <1104255406.015130.138150@z14g2000cwz.googlegroups.com> X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) Xref: g2news1.google.com comp.lang.ada:7275 Date: 2004-12-28T21:17:39+00:00 List-Id: R wrote: > because all OOP languages uses references to pass the objects as > parameters... Oh dear, no... That's a might big assumption that 'all OOP languages' use references to pass objects - that's how it's implemented but there is (usually) no need in Ada for the programmer to get their hands dirty with such low level details! Tagged types are guaranteed to be passed by reference (the cost of the tag alone makes this the obvious mechanism) and for other types the RM either dictates how it is done or lets the compiler select what's best. :-) Cheers -- Martin