Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: John Ames Newsgroups: comp.os.linux.misc,alt.folklore.computers Subject: Re: naughty Pascal Date: Thu, 8 Jan 2026 08:33:46 -0800 Organization: A noiseless patient Spider Lines: 19 Message-ID: <20260108083346.00007d63@gmail.com> References: <79ScnZHy-uXnP8n0nZ2dnZfqnPadnZ2d@giganews.com> <4oycne7Wk4RQ6sj0nZ2dnZfqnPidnZ2d@giganews.com> <10j48fv$2t1h9$12@dont-email.me> <10j5qgf$3etcd$6@dont-email.me> <10j60bb$3hhps$1@dont-email.me> <7cadnTBwKKzA68r0nZ2dnZfqn_idnZ2d@giganews.com> <10jak55$13ji1$2@dont-email.me> <10jh3n1$3644m$1@nntp.eternal-september.org> <20260105115058.000054fc@gmail.com> <20260105133755.00005e21@gmail.com> <20260106083038.00000777@gmail.com> <10jlrlg$mvh2$4@dont-email.me> <10jnklt$19jj7$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Date: Thu, 08 Jan 2026 16:33:51 +0000 (UTC) Injection-Info: dont-email.me; posting-host="886e02e33f5ee023dd04f62c117ce3f7"; logging-data="1595265"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8poSrngPf+kdGIvK/jHeeor+Llvwzu9M=" Cancel-Lock: sha1:jCQKQz7B+sRoigKm1qUKjpbSTaY= X-Newsreader: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) Xref: csiph.com comp.os.linux.misc:80747 alt.folklore.computers:233391 On Thu, 8 Jan 2026 07:00:14 -0000 (UTC) Lawrence D=E2=80=99Oliveiro wrote: > > Is that why people wrote programs bottom-up (i.e. with the main > > function at the bottom to avoid forward references)? =20 >=20 > C is also like that. And C++, for all its enormous complexity in other > areas, preserves the tradition. C had forward declarations from early on, but they were somewhat janky in K&R; by the time ANSI C was finalized they had full, proper forward declarations, though the old-style (declare the function and its return type, but not the parameters) were still allowed for legacy reasons. Even now there's a certain temptation to write small programs that way; more modern programmers' editors make it easier to navigate through a large source file, and it's easier to compile a one-filer than to set up and maintain a makefile. Doesn't scale well, though.