import REXX source code

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

import REXX source code

Horst
Did anyone find a solution for importing common procedures into REXX scripts at  starting time (like #IMPORT filespec)?
Meanwhile we have so many helpful functions, that have to be maintained on a sigle source and not copied to all REXX scripts.


Reply | Threaded
Open this post in threaded view
|

Re: import REXX source code

Rick McGuire
Which Rexx implementation are you using?  ooRexx has the ::REQUIRES directive that allows you to group multiple routines into a single source that can be shared among different programs. 

Rick


On Sat, Nov 16, 2013 at 6:29 AM, Horst [via Rexx Language Association Forum] <[hidden email]> wrote:
Did anyone find a solution for importing common procedures into REXX scripts at  starting time (like #IMPORT filespec)?
Meanwhile we have so many helpful functions, that have to be maintained on a sigle source and not copied to all REXX scripts.





If you reply to this email, your message will be added to the discussion below:
http://rexx-language-association-forum.44760.x6.nabble.com/import-REXX-source-code-tp1134.html
To start a new topic under Classic Rexx, email [hidden email]
To unsubscribe from Rexx Language Association Forum, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: import REXX source code

Horst
Thanks, it's ooREXX, but mostly procedural.
Reply | Threaded
Open this post in threaded view
|

Re: import REXX source code

Rick McGuire
::REQUIRES doesn't require the use of objects.  You can create a set of procedures in the file using the ::ROUTINE directive.  The one caveat is that these routines are called as external functions, so you can't expose any variables in the caller. 

Rick


On Sat, Nov 16, 2013 at 6:45 AM, Horst [via Rexx Language Association Forum] <[hidden email]> wrote:
Thanks, it's ooREXX, but mostly procedural.


If you reply to this email, your message will be added to the discussion below:
http://rexx-language-association-forum.44760.x6.nabble.com/import-REXX-source-code-tp1134p1136.html
To start a new topic under Classic Rexx, email [hidden email]
To unsubscribe from Rexx Language Association Forum, click here.
NAML