Re: Add nested-function support in a language the based on a stack-machine

Kaz Kylheku <157-073-9834@kylheku.com>
Wed, 14 Mar 2018 00:07:39 +0000 (UTC)

          From comp.compilers

Related articles
| List of all articles for this month |

From: Kaz Kylheku <157-073-9834@kylheku.com>
Newsgroups: comp.compilers
Date: Wed, 14 Mar 2018 00:07:39 +0000 (UTC)
Organization: Aioe.org NNTP Server
References: <6effed5e-6c90-f5f4-0c80-a03c61fd2127@gkc.org.uk> 18-03-042 18-03-049 <CANOtCLVc1Rxp4SRSwD+dLXRUSpxY4igGstfcuxxLj-ydekGsjQ@mail.gmail.com> 18-03-055
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="97916"; mail-complaints-to="abuse@iecc.com"
Keywords: C, design
Posted-Date: 14 Mar 2018 00:42:06 EDT

On 2018-03-13, Kartik Agaram <ak@akkartik.com> wrote:
> On Mon, Mar 12, 2018 at 8:09 PM, William Clodius <w.clodius@icloud.com> wrote:
>> Didn't Lisp have first order functions and closures in 58? If I remember
>> the discussion of APT in the HOPL I conference proceedings correctly it
>> surprisingly had the equivalent of structs.
>
> Lisp had first-class functions but closures require lexical scope,
> which didn't land until Scheme in the '70s.


Anonyous functions without environments are basically just
function pointers.


If those are first class functions, then C has first class functions.


Post a followup to this message

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