WriteOutput() and ErrorOutput()-APIs add a trailing .endofline character to the
data that get output.
E.g. if "out=.array~new" and using it for output redirection, then doing two times
'WriteOutput("abc")' (causing a total of two items to be output) and upon return to Rexx "say
'['out~makeString']'" will cause the following surprising output:
[abc
abc
]
Using Rexx only:
out=.array~new
out~~append("abc")~~append("abc")
say '['out~makeString']'
yields:
[abc
abc]
So changing/processing the supplied data by appending an .endofline should not occur with
WriteOutput() and ErrorOutput().
---rony
P.S.: ReadInput() will read and return the data unchanged/unprocessed, even if it contains
.endofline (which in Rexx e.g. array[i] would do as well, returning the stored item unchanged).
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel