On 2/21/2017 5:39 AM, Erich Steinböck wrote:
> routine = .Routine~newFile(name || ".rex")
Hmmm, I may not know up front whether I want a named routine or a
separate program. But I could certainly check for existence of a
named routine first:
If .routines~hasIndex(name~upper) Then
routine = .routines[name~upper]
Else
routine = .Routine~newFile(name || ".rex")
I suppose I could even add the external program to the current package
instead of keeping a separate list of loaded routines:
.context~package~addRoutine(name, routine)
Thanks!
Oh, but there's a third case that Les's example points out: What if the
external routine I need is really a built-in function? Neither this
method nor "Call (name~lower)" works for that. I don't see a runtime
object that lists the BIFs. Am I stuck?
¬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
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users