LesK - 2011-02-26

Assuming THE/Regina resolves .rex files the same way THE/ooRexx does, then you should:
1-Put the .rex program in a file that is in a folder pointed to by THE_MACRO_PATH, or
2-Put it in the regular PATH (assuming Windows) and let the interpreter (ooRexx or Regina) find it BUT you should keep PATH folders and THE_MACRO_PATH folders isolated from each
other. That is to say that neither path should include a folder that is in the other path.

The reason for this is that, under Windows and ooRexx, THE invokes external functions as a
SUBROUTINE if it exists in THE_MACRO_PATH. Thus the code can't programmatically determine if it *must* return an answer... it will never see itself invoked as a FUNCTION.

If it isn't in THE_MACRO_PATH then the interpreter will find it and all will be well.

Regina may be slightly different. You might have to experiment to see if its behavior is the same
as what I saw and that Mark and ooRexx Developers explained to me on the RexxLA.org list.