🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4713

Re: Local Module problem in JPI

#4713
From: Randy Bush
Date: Tue, 14 Mar 1989 19:48
29 lines
1346 bytes
In article <296@val.UUCP> ben@val.UUCP (Ben Thornton) writes:
> I am trying to export some variables from a local module
> (a module within a module), and am unable to reference them
> using non-qualified techniques.

This would be most unfortunate.  Please compile the following correct
program module with your compiler.  If the results are erroneous, please
tell us the name of the compiler to be avoided.

MODULE t;
  MODULE m0;
    EXPORT p0;
    PROCEDURE p0 ();
    BEGIN END p0;
    END m0;
  MODULE m1;
    EXPORT QUALIFIED p1;
    PROCEDURE p1 ();
    BEGIN END p1;
    END m1;
BEGIN
  p0 ();
  m1.p1 ()
  END t.

Note that both procedures could have been named p0, and the compiler should
differentiate based solely on qualification, but this is a degenerate case.
-- 
{ mcvax!uunet!oresoft, tektronix!percival!qiclab } !m2xenix!randy  Randy Bush
Technical Details
Message-ID: <209@m2xenix.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!amdahl!pacbell!ditka!qiclab!m2xenix!randy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!amdahl!pacbell!ditka!qiclab!m2xenix!randy
From: randy@m2xenix.UUCP (Randy Bush)
Newsgroups: comp.lang.modula2
Subject: Re: Local Module problem in JPI
Keywords: JPI Topspeed
Message-ID: <209@m2xenix.UUCP>
Date: 14 Mar 89 19:48:06 GMT
Reply-To: randy@m2xenix.UUCP (Randy Bush)
Distribution: na
Organization: Oregon Software, Portland Oregon US
Lines: 29