Re: language design implications for variant records in a pascal-like language

Hans-Peter Diettrich <DrDiettrich1@aol.com>
Sat, 08 Jan 2011 20:36:40 +0100

          From comp.compilers

Related articles
[25 earlier articles]
Re: language design implications for variant records in a pascal-like jm@bourguet.org (Jean-Marc Bourguet) (2011-01-05)
Re: language design implications for variant records in a pascal-like gneuner2@comcast.net (George Neuner) (2011-01-06)
Re: language design implications for variant records in a pascal-like gneuner2@comcast.net (George Neuner) (2011-01-06)
Re: language design implications for variant records in a pascal-like gneuner2@comcast.net (George Neuner) (2011-01-06)
Re: language design implications for variant records in a pascal-like gneuner2@comcast.net (George Neuner) (2011-01-06)
Re: language design implications for variant records in a pascal-like bobduff@shell01.TheWorld.com (Robert A Duff) (2011-01-06)
Re: language design implications for variant records in a pascal-like DrDiettrich1@aol.com (Hans-Peter Diettrich) (2011-01-08)
Re: language design implications for variant records in a pascal-like robin51@dodo.com.au (robin) (2011-01-10)
Re: language design implications for variant records in a pascal-like gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-01-10)
Re: language design implications for variant records in a pascal-like haberg-news@telia.com (Hans Aberg) (2011-01-10)
Re: language design implications for variant records in a pascal-like compilers@is-not-my.name (2011-01-10)
Re: language design implications for variant records in a pascal-like martin@gkc.org.uk (Martin Ward) (2011-01-12)
Re: language design implications for variant records in a pascal-like martin@gkc.org.uk (Martin Ward) (2011-01-12)
[24 later articles]
| List of all articles for this month |
From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.compilers
Date: Sat, 08 Jan 2011 20:36:40 +0100
Organization: Compilers Central
References: 10-12-040 10-12-043 11-01-005 11-01-025
Keywords: design
Posted-Date: 09 Jan 2011 19:14:37 EST

George Neuner schrieb:


> Why do so many languages offer (at least) two forms of conditional
> loop: one with the test at the beginning and another with the test at
> the end? Why not just offer an infinite loop and a way to break out
> that can be tied to any conditional?


There exist languages with a single loop statement, allowing to break at
every end :-)


do [while...] [until...]
      ...
loop [while...] [until...]


Breaking out of loops should always be possible, even if some people
don't like that, so that your suggestion should work with almost every
language. More critical are Continue statements, that allowed my C
decompiler to distinguish between For and While loops.


DoDi



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.