Related articles |
---|
[10 earlier articles] |
Re: another C-like language? was Compilers :) david.brown@hesbynett.no (David Brown) (2023-01-08) |
Re: another C-like language? was Compilers :) DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2023-01-09) |
Re: another C-like language? was Compilers :) 864-117-4973@kylheku.com (Kaz Kylheku) (2023-01-09) |
Re: another C-like language? was Compilers :) Keith.S.Thompson+u@gmail.com (Keith Thompson) (2023-01-09) |
Re: another C-like language? was Compilers :) david.brown@hesbynett.no (David Brown) (2023-01-10) |
Re: another C-like language? was Compilers :) gah4@u.washington.edu (gah4) (2023-01-10) |
Re: another C-like language? was Compilers :) tkoenig@netcologne.de (Thomas Koenig) (2023-01-11) |
Re: another C-like language? was Compilers :) 864-117-4973@kylheku.com (Kaz Kylheku) (2023-01-11) |
Re: another C-like language? was Compilers :) findlaybill@blueyonder.co.uk (Bill Findlay) (2023-01-11) |
Re: another C-like language? was Compilers :) david.brown@hesbynett.no (David Brown) (2023-01-11) |
Re: another C-like language? was Compilers :) laguest@archeia.com (Luke A. Guest) (2023-01-13) |
Re: another C-like language? was Compilers :) gneuner2@comcast.net (George Neuner) (2023-01-13) |
Re: another C-like language? was Compilers :) 864-117-4973@kylheku.com (Kaz Kylheku) (2023-01-14) |
[3 later articles] |
From: | Thomas Koenig <tkoenig@netcologne.de> |
Newsgroups: | comp.compilers |
Date: | Wed, 11 Jan 2023 10:49:15 -0000 (UTC) |
Organization: | news.netcologne.de |
References: | 23-01-001 23-01-002 23-01-003 23-01-008 23-01-016 23-01-029 |
Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="93956"; mail-complaints-to="abuse@iecc.com" |
Keywords: | C, history |
Posted-Date: | 11 Jan 2023 18:07:30 EST |
Kaz Kylheku <864-117-4973@kylheku.com> schrieb:
> The "Variables at the top" meme may be something coming from Pascal.
> IIRC, in Pascal, compound statements aren't full blocks; they cannot
> have VAR declarations.
FORTRAN has had declaration statements (first version, DIMENSION
only) at the top of procedures since the beginning. Algol 58
aka IAL had declarations everywere, while Algol 60 allowed them
only at the beginning of blocks.
> When programmers abandoned Pascal in the 1980s, they carried over this
> habit into C.
Probably, C just carried it over from the Algol tradition.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.