🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4786

Re: Are procedure types breaking modules?

#4786
From: Urs Hoelzle
Date: Tue, 25 Apr 1989 15:55
9 lines
890 bytes
>are not allowed.  Why is it that you are not allowed to assign a
>local procedure to a procedure variable ? 

If you assign a local procedure to a procedure variable and if this
procedure accesses (local) variables of the enclosing procedure(s),
you will get into trouble when calling it because the activation
records of the enclosing procedures do not exist. 

-Urs
Technical Details
Message-ID: <8752@polya.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!labrea!polya!hoelzle
References: <688@tuvie> <849@htsa.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!labrea!polya!hoelzle
From: hoelzle@polya.Stanford.EDU (Urs Hoelzle)
Newsgroups: comp.lang.modula2
Subject: Re: Are procedure types breaking modules?
Keywords: procedure types, modules
Message-ID: <8752@polya.Stanford.EDU>
Date: 25 Apr 89 15:55:11 GMT
References: <688@tuvie> <849@htsa.uucp>
Sender: Urs Hoelzle <hoelzle@polya.Stanford.EDU>
Reply-To: hoelzle@polya.Stanford.EDU (Urs Hoelzle)
Organization: Stanford University
Lines: 8