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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9d303864ae4c70ad X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-10 06:28:14 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!dialin-145-254-044-158.arcor-ip.NET!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Reprise: 'in out' parameters for functions Date: Sat, 10 Apr 2004 15:26:41 +0200 Organization: At home Message-ID: References: <87brm1pksa.fsf@deneb.enyo.de> <87lll4ydj9.fsf@deneb.enyo.de> <87y8p45bpv.fsf@deneb.enyo.de> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: dialin-145-254-044-158.arcor-ip.net (145.254.44.158) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.uni-berlin.de 1081603692 93493312 I 145.254.44.158 ([77047]) User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:6949 Date: 2004-04-10T15:26:41+02:00 List-Id: Florian Weimer wrote: > "Dmitry A. Kazakov" writes: > >> > Well, this is solution is obviously quite bad because "procedure" and >> > "function" are now almost (but not quite) interchangeable. >> >> Isn't an access parameter almost interchangeable with an "in out" >> parameter? > > No, it isn't. You can't obtain an access value for most objects. So what? The only reasonable use of an access parameter is to have "in out" where it is not allowed. [I do not count circumventing by-copy parameter passing for reasonable] >> Let me use your argument: what would be the difference between "function" >> and "procedure" then? > > Its use. A procedure call is a statement, a function call is a name > (and thus part of an expression). Expression is a part of a statement, so I see as much difference as between + and "+". -- Regards, Dmitry A. Kazakov www.dmitry-kazakov.de