On Sat, 2025-02-22 at 18:24 +0000, David Holland wrote: > > Or fix the code. Commons exist to support FORTRAN notions about > linking; using them from C has always been a bug. >
I was always under the impression that the C language has never allowed FORTRAN commons. This being a lazy Sunday morning I decided to waste some time by checking my copy of K&R, and sure enough section 11.2 makes it quite clear that defining a variable multiple times without the "extern" keyword has been wrong since 1978. I suppose we could always wait another three years before fixing our code so that we could make it a nice round 50 years? [I don't mean any disrepect to anyone who has suggested doing something other than fix the code, but 1978 you know.] Ngā mihi, Lloyd