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,9f3d09bde7b33b5d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-09 05:38:35 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dan.r.mcleran@seagate.com (Dan McLeran) Newsgroups: comp.lang.ada Subject: Re: Pass by reference Date: 9 Apr 2004 05:38:35 -0700 Organization: http://groups.google.com Message-ID: <19b0e504.0404090438.7e800536@posting.google.com> References: <19b0e504.0404080652.4eab9f80@posting.google.com> NNTP-Posting-Host: 192.55.20.36 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1081514315 7117 127.0.0.1 (9 Apr 2004 12:38:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 9 Apr 2004 12:38:35 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:6897 Date: 2004-04-09T05:38:35-07:00 List-Id: > A couple of larger questions; > > Why do you care whether a type is passed by copy or reference? I'm just trying to get more familiar with the language. I've done mostly C++ programming for the past several years and am looking at alternatives. > > If you are worried about time or space efficiency, specify the > appropriate option to the compiler, and forget about it, until > measurements of your final application show a problem. I'm not worried about it. I just want to understand all the details because I'll probably have to explain it to others. > > Why would you want to pass a tagged type by copy? I don't necessarily want to. I actually would never do this in C++, unless the class was something very small and intended to be passed by value: struct Silly { int i; }; I'm just trying to solidify the Ada language rules in my brain. > > You might want to read the Ada Rationale, and the annotated Ada > Reference manual, on this topic. See > http://www.adaic.com/standards/ada95.html Thanks for the link. I can use all the help I can get.