60.2. How does it work?

One might be surprised at how simple this actually is. The C++ functions that live in the Actions namespace simply prepends a directive and size to the message the user seeks to output and then writes the output to stderr. The tcl package that reads the output from the pipeline then reads the message and handles the message in a manner dictated by the directive.