I want to run rexxtry with rxmath loaded so I can use its functions.
That's straightforward enough:

  Call rexxtry
  ::Requires 'RxMath' Library

Now suppose I want to load the rxmath functions with shorter names, so I
don't have to type RXCALC in front of everything:

  ::Routine Log External 'Library RxMath RxCalcLog'

Those renamed routines are only available to my program, not to rexxtry.

I can use PUBLIC to make them available to programs that call my program
with ::REQUIRES, like so:

  /* mymath.rex */
  ::Routine Log Public External 'Library RxMath RxCalcLog'

  /* trymath.rex */
  Trace ?R
  Say 'Enter commands here:'
  ::Requires 'MyMath'

But they're not available to a program called *by* my program, whether
they're loaded by my program or by one it requires.  If I try this:

  Call rexxtry
  ::Requires 'MyMath'
  ::Routine TryLog Public External 'Library RxMath RxCalcLog'

neither LOG nor TRYLOG is available to rexxtry.  Am I overlooking some
way to make them available, short of writing a stub routine to call
RxCalcLog and putting it on disk (either separately or in a library)?

¬R




_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to