Re: Is multi-level function return possible?

Marco van de Voort <marcov@toad.stack.nl>
Sun, 16 Mar 2014 18:39:14 +0000 (UTC)

          From comp.compilers

Related articles
[17 earlier articles]
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)
Re: Is multi-level function return possible? DrDiettrich1@aol.com (Hans-Peter Diettrich) (2014-03-15)
Re: Is multi-level function return possible? usenet@bitblocks.com (Bakul Shah) (2014-03-15)
Re: Is multi-level function return possible? noitalmost@cox.net (noitalmost) (2014-03-15)
Re: Is multi-level function return possible? anton@mips.complang.tuwien.ac.at (2014-03-16)
Re: Is multi-level function return possible? marcov@toad.stack.nl (Marco van de Voort) (2014-03-16)
Re: Is multi-level function return possible? news@cuboid.co.uk (Andy Walker) (2014-03-16)
Re: Is multi-level function return possible? yaldnif.w@blueyonder.co.uk (Bill Findlay) (2014-03-17)
Re: Is multi-level function return possible? anton@mips.complang.tuwien.ac.at (2014-03-18)
Re: Is multi-level function return possible? news@cuboid.co.uk (Andy Walker) (2014-03-21)
Re: Is multi-level function return possible? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2014-03-21)
Re: Is multi-level function return possible? anton@mips.complang.tuwien.ac.at (2014-03-24)
[7 later articles]
| List of all articles for this month |

From: Marco van de Voort <marcov@toad.stack.nl>
Newsgroups: comp.compilers
Date: Sun, 16 Mar 2014 18:39:14 +0000 (UTC)
Organization: Stack Usenet News Service
References: 14-03-020 14-03-022 14-03-025 14-03-030 14-03-044
Keywords: Pascal, code, history
Posted-Date: 17 Mar 2014 11:03:42 EDT

On 2014-03-16, Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
> Language design note: Given that nested functions have fallen out of
> favour in the Algol-family world (in C and its offspring), I wonder if
> they only really gain usefulness when combined with first-class
> closures.


It's more the rise of OOP in Pascal than need for a real closure. This
functionality was mostly used to parameterize code with other code,
something that was steered more in the direction of OOP and
inheritance/virtual methods.


Fun fact is that Turbo Pascal, while not supporting the functionality, still
used it for a generic ForEach functionality on its container type. Using
some assembler frame trickery.


Post a followup to this message

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