From mboxrd@z Thu Jan 1 00:00:00 1970 From: cym224@gmail.com (Nemo) Date: Sun, 14 May 2017 10:48:49 -0400 Subject: [TUHS] C declarations. In-Reply-To: References: <015401d2caa0$79762650$6c6272f0$@ronnatalie.com> <68E8DC0A-D1B8-4FF0-AD26-ACDC57E308AF@pobox.com> <20170511223232.GM4341@mcvoy.com> <015b01d2caa7$c658c020$530a4060$@ronnatalie.com> <20170513012415.GZ4341@mcvoy.com> <025701d2cb92$ec8182a0$c58487e0$@ronnatalie.com> <20170513122050.GF9980@yeono.kjorling.se> <0CF82AC1-E835-4C06-813F-D9EFD2C12290@tfeb.org> <1494702492.1902154.975591160.507FCE4C@webmail.messagingengine.com> Message-ID: On 13 May 2017 at 19:21, Dave Horsfall wrote: > On Sat, 13 May 2017, Random832 wrote: > >> Fortran, for the record, passes nearly everything by reference [...] > > And if you passed a constant and the local argument was modified, so was > the (single instance of) constant... Probably depends on the implementation. VAX-FORTRAN passed by reference (but not on the stack). Off-topic: I recall a working function that crashed when fed a constant string. Spelunking revealed that someone had replaced a letter-by-letter case-insensitive comparison with a "faster version" (written in VAX assembler, no less) that converted both arguments to upper case and then block-compared. N.