Hi Glenn,

> save it, say, in .local
>
Don't use .local, put it into a simply variable instead (see below)

callwith('say log(2)')
>
strictly speaking, callWith requires an Array as its argument
cleaner and simpler would be to use call("say log(2)") (see below)

it doesn't have the other routines in scope that way
>
This works for me:

~~~
say log(10)
try = .Routine~newFile(.File~searchPath("rexxtry.rex"), "PROGRAMSCOPE")
try~call("say log(10)")

.context~package~addPublicRoutine("RTRY", try)
call rtry "say log(10)"

::routine log public external 'Library RxMath RxCalcLog'
~~~

Not sure if you're aware of rexx -e *program-code*
I find it very handy to type rexx -e "say log(10); ::routine log public
external 'library RxMath RxCalcLog'"
With this there is no need to go via rexxtry (that's why I never use
rexxtry)
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to