🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1730

Re: Nested routines as values?

#1730
From: Randy Bush
Date: Sun, 20 Jan 1991 07:12
18 lines
1252 bytes
ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:

> I heard a rumour from a colleague that the Modula-2 standards people were
> considering allowing routines declared within other routines to be
> passed as values of PROCEDURE types. Can anybody tell me if this is true?

While it was considered, I believe that embellishment was forgone.

> I think it's a good idea, unless it means that PROCEDURE values become
> descriptors, instead of straight addresses. If that's the case, it's
> going to make it very cumbersome to interface to non-Modula-2 code.

And you even know why <grin>.

So, unless you are willing to forgo access to intermediate lexic scopes or have
proc vars be more than addresses ...
-- 
..!{uunet,qiclab,intelhf,bucket}!m2xenix!news
Technical Details
Message-ID: <1991Jan20.071235.11193@m2xenix.psg.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!spool2.mu.edu!sdd.hp.com!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!pdxgate!parsely!percy!qiclab!m2xenix!news
References: <1991Jan19.151918.2734@waikato.ac.nz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!spool2.mu.edu!sdd.hp.com!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!pdxgate!parsely!percy!qiclab!m2xenix!news
From: news@m2xenix.psg.com (Randy Bush)
Newsgroups: comp.lang.modula2
Subject: Re: Nested routines as values?
Message-ID: <1991Jan20.071235.11193@m2xenix.psg.com>
Date: 20 Jan 91 07:12:35 GMT
References: <1991Jan19.151918.2734@waikato.ac.nz>
Organization: Pacific Systems Group, Portland Oregon US
Lines: 18