swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax   Related Concepts  
built-in variable  

#current-output

 
 

Purpose

Represents OmniMark's current output, a collection of output destinations.

  put #current-output "Mary had a little lamb"
is thus equivalent to:
  output "Mary had a little lamb"

This isn't very useful in itself, but it allows you to add a destination to current output by changing current output to #current-output and the new destination stream:

  global stream lamb
  process
     local stream mary
     open lamb as buffer
     open mary as file "mary.txt"
     output-to lamb
     put #current-output and mary "Mary had a little lamb.%n"
     using output as #current-output and mary
     do
        output "Its fleece was white as snow.%n"
     done

  Related Syntax
   #main-output
   output
   output-to
   put
   using output as
 
Related Concepts
   Input
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:44:51 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.