🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4781

Are procedure types breaking modules?

#4781
From: Inst.f.Prakt.Info 1802
Date: Sat, 22 Apr 1989 16:48
19 lines
1415 bytes
When considering 6.8 of the Modula-2 report only procedures local to
other procedures and standard procedures are forbidden to be assigned
to a variable of a procedure type. This means that it is possible
to call a procedure which is not exported from another module, when
you pass the procedure dynamically. I do not believe that this
feature is really undesirable, however was it really intended?
The problem that might arise here is that there might be
introduced invisible dependencies. The alternative would be a complicated 
dataflow analysis or even a runtime check. 

o	Is this a desirable feature, have you used it in "real" programs?
o	Are there any alternatives to it?

Just to cite Wirth (3rd ed. p84) [...checking no absoulte safeguard...]
>After all, it [module concept] concerns formal, syntactic aspects only; it 
>does not cover the semantics. <Well, we are here on the razors egde...>

Ulrich
(ulrich@vip.at UUCP: ...!mcvax!tuvie!vip!ulrich)
Technical Details
Message-ID: <688@tuvie>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!tuvie!brock

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!tuvie!brock
From: brock@tuvie (Inst.f.Prakt.Info 1802)
Newsgroups: comp.lang.modula2
Subject: Are procedure types breaking modules?
Keywords: procedure types, modules
Message-ID: <688@tuvie>
Date: 22 Apr 89 16:48:22 GMT
Reply-To: ulrich@vip.UUCP (Ulrich Neumerkel)
Organization: Technical University of Vienna, EDP-Center
Lines: 19