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

Bill Findlay <findlaybill@blueyonder.co.uk>
Tue, 20 Mar 2018 12:49:45 +0000

          From comp.compilers

Related articles
| List of all articles for this month |
From: Bill Findlay <findlaybill@blueyonder.co.uk>
Newsgroups: comp.compilers
Date: Tue, 20 Mar 2018 12:49:45 +0000
Organization: Compilers Central
References: <6effed5e-6c90-f5f4-0c80-a03c61fd2127@gkc.org.uk> 18-03-042 18-03-047 18-03-075 18-03-079
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="25004"; mail-complaints-to="abuse@iecc.com"
Keywords: code, design
Posted-Date: 20 Mar 2018 12:33:50 EDT

On 20 Mar 2018, Anton Ertl wrote (in article18-03-079):


> Actually, it even took quite a while in the early years; e.g., IPL
> (1956) had higher-order functions, Algol 60 didn't, Pascal (1970) did,
> Ada-83 didn't (IIRC).


Algol 60 and Wirth Pascal had exactly the same functional-parameter
capability;
i.e. both procedural and functional parameters were included,
but neither language provided a way to specify their signatures.


This was rectified for Pascal, with Wirth's approval, by the BSI Pascal
standard and later by the bureaucratic variant of the latter known as ISO
Pascal.


(Ada 83 provided a clumsy way to do it by means of generics;
later versions of Ada do it properly.)


--
Bill Findlay


Post a followup to this message

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