On 1/27/2022 12:04 PM, Erich Steinböck wrote:
> .Routine~newFile(.File~searchPath("rexxtry.rex"), "PROGRAMSCOPE")~call
Oh, so instead of calling it as a separate program, I can load it as a
routine within my program and then call that. And if I want to call it
multiple times, I could save it, say, in .local:
.local[rexxtry]= ,
.Routine~newFile(.File~searchPath("rexxtry.rex"), "PROGRAMSCOPE")
.rexxtry~callwith('say log(2)')
.rexxtry~call
::REQUIRES MyMath
Nice, thanks! Guess it's time to upgrade to get that searchPath method
and PROGRAMSCOPE option that I don't have yet. I can specify the exact
path myself, but without PROGRAMSCOPE I still can't call other routines
in my program.
This triggered just enough memory of adding to the current package to
find how to try it that way
.context~package~addPublicRoutine(rexxtrym, .rexxtry)
Call rexxtrym
But nope, it doesn't have the other routines in scope that way, either.
Thanks--
¬R
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users