Re: Is multi-level function return possible?

Marco van de Voort <marcov@toad.stack.nl>
Fri, 14 Mar 2014 19:38:24 +0000 (UTC)

          From comp.compilers

Related articles
[6 earlier articles]
Re: Is multi-level function return possible? tkowaltowski@gmail.com (Tomasz Kowaltowski) (2014-03-12)
Re: Is multi-level function return possible? anton@mips.complang.tuwien.ac.at (2014-03-13)
Re: Is multi-level function return possible? yaldnif.w@blueyonder.co.uk (Bill Findlay) (2014-03-14)
Re: Is multi-level function return possible? ivan@ootbcomp.com (Ivan Godard) (2014-03-13)
Re: Is multi-level function return possible? gneuner2@comcast.net (George Neuner) (2014-03-14)
Re: Is multi-level function return possible? gneuner2@comcast.net (George Neuner) (2014-03-14)
Re: Is multi-level function return possible? marcov@toad.stack.nl (Marco van de Voort) (2014-03-14)
Re: Is multi-level function return possible? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2014-03-14)
Re: Is multi-level function return possible? kaz@kylheku.com (Kaz Kylheku) (2014-03-14)
Re: Is multi-level function return possible? kaz@kylheku.com (Kaz Kylheku) (2014-03-14)
Re: Is multi-level function return possible? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2014-03-14)
Re: Is multi-level function return possible? marcov@toad.stack.nl (Marco van de Voort) (2014-03-14)
Re: Is multi-level function return possible? ian@airs.com (Ian Lance Taylor) (2014-03-14)
[18 later articles]
| List of all articles for this month |

From: Marco van de Voort <marcov@toad.stack.nl>
Newsgroups: comp.compilers
Date: Fri, 14 Mar 2014 19:38:24 +0000 (UTC)
Organization: Stack Usenet News Service
References: 14-03-020 14-03-022 14-03-031
Keywords: design, code, Pascal
Posted-Date: 14 Mar 2014 16:34:46 EDT

On 2014-03-14, George Neuner <gneuner2@comcast.net> wrote:
>>... in Pascal you can goto a label that is in a containing procedure
>>or function, even across several levels. That is a very rarely used
>>feature of the language, and Wirth removed it (along with goto) from
>>his later languages.
>
> Interesting. I was not aware of this, and it is not mentioned in any
> of several Pascal books I have from the early 80's. Other than
> Wirth's own, I wonder how many implementations actually allowed it?


GPC and several of the other ISO aspirants I assume. Free Pacal added it in
its ISO mode too, though much more recently (afaik the current production
2.6.x series).


Some examples are in the testsuite here:
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/tests/test/


tisogoto* are the interprocedural goto tests, specially
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/tests/test/tisogoto1.pp?revision=15710&view=markup


tmaclocalprocparam* are the closurelike functionality


P.s. Delphi 2009 has a closure like feature too, called "anonymous methods".


Post a followup to this message

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