swirl
Guide to OmniMark 9   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.

  process
     put #current-output "Hello, World!%n"
          
is thus equivalent to:
  process
     output "Hello, World!%n"
          

This isn't very useful in itself, but it allows you to add an item to the current set of destinations:

  global stream s
  
  process
     local stream t
  
     open s as buffer
     open t as file "t.txt"
  
     output-to s
     put #current-output & t "Hello, World!%n"
     using output as #current-output & t
        output "Salut, Monde!%n"
          

  Related Syntax
 
Related Concepts
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:51:21 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.