MatrixWriter

The class matrix.db.MatrixWriter is available to JPOs for sending output to the console of the thread from which they were launched.

For instance, if invoked from a Tcl program, the output would be captured and returned as the results from the Tcl/MQL command.

tcl;
set results [mql exec prog "Hello World"]
# the next line should display "Hello World!"
puts $results

The MatrixWriter class is useful for seamlessly replacing existing Tcl programs with JPOs.