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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aa7f494bf30adbc7 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!nntp.abs.net!ash.uu.net!spool.news.uu.net!not-for-mail Date: Fri, 18 Jun 2004 08:04:37 -0400 From: Hyman Rosen User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: [newbie] simple(?) data structures References: <2j1e30Fsrg8vU1@uni-berlin.de> <2jao1qFvj2rgU1@uni-berlin.de> <2jc33qFv3sitU1@uni-berlin.de> <1087475845.607135@master.nyc.kbcfp.com> <7MgAc.96169$dP1.314202@newsc.telia.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1087560281.744369@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1087560288 18916 204.253.250.10 Xref: g2news1.google.com comp.lang.ada:1655 Date: 2004-06-18T08:04:37-04:00 List-Id: Ole-Hjalmar Kristensen wrote: > C++ has by-reference parameter passing if you want, so you don't need > to use pointers for out parameters. However, as you cannot see from > the signature of a function (except as a comment) whether the function > modifies your parameter of not, I find this a mixed blessing. Huh? If you pass by reference in C++ you get to declare the parameters either as plain references or as const ones. You certainly can tell this from the signature: void mangle(const string &in, string &out);