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: a07f3367d7,3867e2f73fa21ec X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.216.166 with SMTP id or6mr3792058pac.26.1367628033348; Fri, 03 May 2013 17:40:33 -0700 (PDT) Path: bp1ni1438pbd.1!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.kamp.net!newsfeed.kamp.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED.cpe-50-113-101-180.san.res.rr.com!not-for-mail From: Keith Thompson Newsgroups: comp.lang.ada Subject: Re: Ada 2012: In-out parameters for functions Date: Fri, 03 May 2013 17:40:30 -0700 Organization: None to speak of Message-ID: References: <7704abab-86f2-4edc-ad4b-b3d4e70004fb@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx05.eternal-september.org; posting-host="cpe-50-113-101-180.san.res.rr.com:50.113.101.180"; logging-data="29865"; mail-complaints-to="abuse@eternal-september.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:xdlSyWVibDq0PySaEgvlpJDKVoc= X-Received-Bytes: 2155 Content-Type: text/plain; charset=us-ascii Date: 2013-05-03T17:40:30-07:00 List-Id: anon writes: [...] > Since then one or more of Ada maintainers have decided to add number > of "C" like syntax and/or coding to Ada. An example is the "conditional > statements" another is the the "C" function/procedure call with both > having in out parameters. A number of old "C" compilers ( 1980..1990s > from Microsoft and IBM ) allowed the "in out" parameters for C > functions. [...] Do you have a specific example of a C compiler that supports "in out" parameters? The C language itself has always specified pure pass-by-value for all function parameters. (No, arrays are not an exception to that; for details see section 6 of the comp.lang.c FAQ, .) Pass-by-reference is easily, though perhaps a bit clumsily, emulated by passing pointer arguments. A C compiler certainly *could* support "in out" parameters as an extension, but I've never heard of one that did. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"