Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: "Robin Vowels" Newsgroups: comp.compilers Subject: Re: language design after Algol 60 Date: Sat, 14 Apr 2018 14:19:11 +1000 Organization: Compilers Central Lines: 26 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <18-04-065@comp.compilers> References: <49854345-f940-e82a-5c35-35078c4189d5@gkc.org.uk> <18-03-103@comp.compilers> <18-03-042@comp.compilers> <18-03-047@comp.compilers> <18-03-075@comp.compilers> <18-03-079@comp.compilers> <18-03-101@comp.compilers> <18-04-002@comp.compilers> <18-04-003@comp.compilers> <18-04-004@comp.compilers> <18-04-024@comp.compilers> <18-04-034@comp.compilers> <18-04-041@comp.compilers> <18-04-046@comp.compilers> <18-04-050@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 8bit Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="2803"; mail-complaints-to="abuse@iecc.com" Keywords: syntax, algol68 Posted-Date: 14 Apr 2018 15:04:43 EDT 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:2077 From: "bartc" Sent: Friday, April 13, 2018 4:40 AM > But it is not adding extra syntax; if anything it is getting rid of it! > If a for-loop starts like this: > > for i:=1 to n do ... > > Then by leaving out the bits not needed you end up with this: > > to n do ... The control variable, i, must not be omitted. It may be required for computations within the loop (including subscript references). Even if not explicitly referenced within the loop, its value will be required for fault finding (with error control and/or with debugger). > A repeat-n-times loop (one that doesn't have to maintain an explicit > loop counter accessible as a reference-counted variable from the source > code). It's still required, as described above.