On 2/24/2017 8:37 AM, Erich Steinböck wrote:
> To call a BIF, whose name is to be constructed during run-time, you
> might run the equivalent String method, and/or (pre-) define/run "bif"
> routines.

But first there's the task of identifying that the name matches a BIF in
the first place.  That's why I was looking for a runtime object that
might list them.

I wasn't looking for this for practical application at all, but I
imagine using it in a debugging routine, for instance.  A single routine
could have a long list of labels at the top to intercept calls to
various external routines of all kinds:

  MyExec:     -- another program
  MyRoutine:  -- a named routine
  ReVerse:    -- a built-in function
  Trace ?R
  Say 'Calling' .context~name
  -- really might want all args here, which gets messy:
  Interpret "Call '".context~name"'" Arg(1)
  Say 'And now back to our show . . .'
  If Symbol('RESULT') = 'VAR' Then Return result
  Else return

¬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