Path: 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 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