From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19911 invoked from network); 14 May 2020 07:39:11 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 14 May 2020 07:39:11 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 5BD7C9C6B1; Thu, 14 May 2020 17:39:05 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 951A99C668; Thu, 14 May 2020 17:38:41 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id B74FC9C668; Thu, 14 May 2020 17:38:38 +1000 (AEST) Received: from viclamta27p.bpe.bigpond.com (viclamta27p.bpe.bigpond.com [203.38.21.91]) by minnie.tuhs.org (Postfix) with ESMTPS id C8ACB9C604 for ; Thu, 14 May 2020 17:38:37 +1000 (AEST) Received: from smtp.telstra.com ([10.10.26.4]) by viclafep27p-svc.bpe.nexus.telstra.com.au with ESMTP id <20200514073835.XHLK1618.viclafep27p-svc.bpe.nexus.telstra.com.au@smtp.telstra.com> for ; Thu, 14 May 2020 17:38:35 +1000 X-RG-Spam: Unknown X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeduhedrleehgdduvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuuffpveftpgfvgffnuffvtfetpdfqfgfvnecuuegrihhlohhuthemucegtddtnecunecujfgurhepfffhvffujgfkfhgfgggtsehttddttddtredvnecuhfhrohhmpeffrghvvgcujfhorhhsfhgrlhhluceouggrvhgvsehhohhrshhfrghllhdrohhrgheqnecuggftrfgrthhtvghrnhepkeeiteejueeuhfefgeeuvdduieefvedugfevtdffkefhffejkefhuddtteehtefhnecukfhppeduuddtrddugedurdduleefrddvfeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheprghnvghurhhinhdrhhhorhhsfhgrlhhlrdhorhhgpdhinhgvthepuddutddrudeguddrudelfedrvdeffedpmhgrihhlfhhrohhmpeeouggrvhgvsehhohhrshhfrghllhdrohhrgheqpdhrtghpthhtohepoehtuhhhshesthhuhhhsrdhorhhgqe X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-RG-VS-CLASS: clean Received: from aneurin.horsfall.org (110.141.193.233) by smtp.telstra.com (5.8.420) id 5E865EB507B87795 for tuhs@tuhs.org; Thu, 14 May 2020 17:38:34 +1000 Received: from aneurin.horsfall.org (localhost [127.0.0.1]) by aneurin.horsfall.org (8.15.2/8.15.2) with ESMTP id 04E7cY7m023904 for ; Thu, 14 May 2020 17:38:34 +1000 (EST) (envelope-from dave@horsfall.org) Received: from localhost (dave@localhost) by aneurin.horsfall.org (8.15.2/8.15.2/Submit) with ESMTP id 04E7cXMC023901 for ; Thu, 14 May 2020 17:38:34 +1000 (EST) (envelope-from dave@horsfall.org) X-Authentication-Warning: aneurin.horsfall.org: dave owned process doing -bs Date: Thu, 14 May 2020 17:38:32 +1000 (EST) From: Dave Horsfall To: The Eunuchs Hysterical Society In-Reply-To: <71163EB4-683D-47DE-AAE2-93BF55C483E6@cfcl.com> Message-ID: References: <3cb1126796176debe28aa66672ba27ae@yaccman.com> <20200511005745.GL17035@mcvoy.com> <357EFE54-BD94-4C10-8C43-C6735BF7D317@via.net> <20200511202555.GU17035@mcvoy.com> <71163EB4-683D-47DE-AAE2-93BF55C483E6@cfcl.com> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) X-GPG-Public-Key: http://www.horsfall.org/gpgkey.pub X-GPG-Fingerprint: 05B4 FFBC 0218 B438 66E0 587B EF46 7357 EF5E F58B X-Home-Page: http://www.horsfall.org/ X-Witty-Saying: "chmod 666 the_mode_of_the_beast" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Re: [TUHS] v7 K&R C X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" On Wed, 13 May 2020, Rich Morin wrote: > A Fortran implementation I used years ago kept constants in a "literal > pool". So, if you called a subroutine, passing in a constant, there was > a possibility that the constant might be modified upon the routine's > return. I don't recall this ever causing a problem in practice, but the > possibility was amusing... As I dimly recall, Fortran has always used call by value/result (or whatever the term is). So, if you modify an argument that happened to be passed as a constant... -- Dave