Trying to understand the native APIs and their purpose for the new redirecting environments. It still seems to be the case that any result can be returned and assigned to the RC variable.

The question is about the usage of redirected input, output and error from the 
native side.

Should one use e.g. ReadInput[Buffer](), WriteOutput[Buffer]() and WriteError[Buffer]() only if the respective redirection tests (IsRedirectionRequested() and IsInputRedirected()/IsOutputRedirected()/IsErrorRedirected()) return true?

Would it be a fatal error to use e.g. Write{Error|Output}[Buffer]() although Is{Error|Output}Redirected() returns false? What would happen in such a case; is the operation ignored or would that have any adverse side effects?

And with ReadInput[Buffer]() would it just return 0 in length if it is not 
redirected?

---rony




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

Reply via email to