Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Thomas Koenig Newsgroups: comp.compilers Subject: Re: another C-like language? was Compilers :) Date: Wed, 11 Jan 2023 10:49:15 -0000 (UTC) Organization: news.netcologne.de Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <23-01-037@comp.compilers> References: <23-01-001@comp.compilers> <23-01-002@comp.compilers> <23-01-003@comp.compilers> <23-01-008@comp.compilers> <23-01-016@comp.compilers> <23-01-029@comp.compilers> 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 X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:3305 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.