🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4706

Local Module problem in JPI

#4706
From: Ben Thornton
Date: Sat, 11 Mar 1989 05:15
44 lines
1492 bytes
  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.  The manual states that
outer module procedures can reference variables and  procedures
which are exported from a local module using using either
of 2 methods.

  The first uses qualified names in the outer module:

Name_Of_Local_Module.Exported_Procedure (foo, bar);

...where you have to declare

EXPORT QUALIFIED Exported_Procedure;

from within the local module.



  The second is to simply say:

EXPORT Exported_Procedure;

  within the local module and reference it in the outer
module as simply:

Exported_Procedure (Foo, Bar);


  The problem I have is that the compiler refuses to accept
the latter syntax.  I have tried relocating the local module
within the outer module but this made no difference.

Any ideas?




-- 

Ben Thornton             packet:  WD5HLS @ KB5PM
Video Associates Labs      uucp:  ...!cs.utexas.edu!oakhill!val!ben
Austin, TX              fidonet:  1:382/40 - The Antenna Farm BBS
Technical Details
Message-ID: <296@val.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!rutgers!cs.utexas.edu!oakhill!val!ben

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!rutgers!cs.utexas.edu!oakhill!val!ben
From: ben@val.UUCP (Ben Thornton)
Newsgroups: comp.lang.modula2
Subject: Local Module problem in JPI
Keywords: JPI Topspeed
Message-ID: <296@val.UUCP>
Date: 11 Mar 89 05:15:14 GMT
Reply-To: ben@val.UUCP (Ben Thornton)
Organization: Video Associates Labs - Austin, Tx
Lines: 44