On Mon, 13 Feb 2017 22:32:18 -0500, Les K wrote:
>return 'REVERSE'(string)

And you can do the same with CALL:

  Call 'REVERSE' string

But what CALL also allows is for the name of the routine to be evaluated
from an expression:

  rev = 'rev'
  erse = 'erse'
  Call (rev || erse) string

A name with any lowercase letters will never match an internal routine,
so ooRexx will search for an external routine by that name (with all the
rules of external searches applied, so case is ignored in searching for
named routines or Windows files).
        
But what if I don't know in advance that the name has any letters?  Or
what if I'm on a system with case-sensitive filenames, so I can't
translate it to lower case?  Is there any way to force the evaluated
expression to be searched for as an external routine?

Putting quotes in the value of the expression doesn't do it:

  Call ("'REVERSE'") string

That looks for a routine whose name is 'REVERSE' including the quotes.

¬R

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to