contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
built-in variable   #main-output    
  Related Syntax   Related Concepts  

Purpose

#main-output is one of the built-in program output streams.

#main-output identifies the output destination, described by the "-of" or "-aof" directive on the OmniMark program's command line. Where there isn't an "-of" or "-aof" on the command line, then #main-output identifies the same destination as #process-output (that is, "standard output").

When #main-output and #process-output identify the same destination, the modifiers that are set on #main-output are applied to the stream attachment. For example, if #main-output is written to in text-mode and #process-output is written to in binary-mode, then the stream attachment will be written to in text-mode.

#main-output is the default output (#current-output) in an OmniMark program. It is "owned" by (and part of the #current-output set in) the output processor in a context-translation, down-translation, or process program and the input processor in a cross-translation or up-translation.

The "declare #main-output has" declarations can be used to change some of the characteristics of the #main-output stream.

#main-output was identified by the name output in earlier releases of OmniMark. output can still be used as a synonym for #main-output (except in contexts where the programmer has declared a shelf, argument, or function with the name output), but its use is deprecated. Using #main-output produces programs that are easier to understand.

By default, the #main-output stream in any program that uses referents is treated as if it were opened with referents-allowed and referents-displayed.

  Related Syntax
   #main-input
   #process-output
   #output
   declare #main-output has
 
Related Concepts
   Input/Output
   Referents: allowing referents in main output
 
----  

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:00 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.