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,1cf653444208df72 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-08 12:19:44 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!wn1feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc06-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3BC1FC56.8272A33@worldnet.att.net> From: James Rogers X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ada vs. cpp References: <9pgr68$7pu1@news.cis.okstate.edu> <9phnic$9g5$1@nh.pace.co.uk> <5fkv7.134136$w7.19988807@news02.optonline.net> <9pski60j31@drn.newsguy.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 08 Oct 2001 19:19:44 GMT NNTP-Posting-Host: 12.86.36.231 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc06-news.ops.worldnet.att.net 1002568784 12.86.36.231 (Mon, 08 Oct 2001 19:19:44 GMT) NNTP-Posting-Date: Mon, 08 Oct 2001 19:19:44 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:13960 Date: 2001-10-08T19:19:44+00:00 List-Id: Mike Mohr wrote: > > Since we are discussing orthogonal language features > which constitute string defects if not present, how > do I explicitly pass Ada strings by value or reference? Why do you care if it is by value or by reference? Is it not more important to ensure that is passed as a constant or non-constant value? Giving the explicit capacity to pass by value or reference requires you to know the underlying architecture and word size. For instance, passing by reference may not be more efficient than a two-way copy of items that can fit in a word. Ada places the responsibility for this knowledge on the compiler vendor and not on the application programmer. Use of such knowledge may make your program less portable. Use of the Ada approach does not sacrifice portability. Jim Rogers Colorado Springs, Colorado USA