swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
     
modifier  

domain-free, declare #main-output has domain-free

 
 

Syntax

  open stream-name indexer? open-modifiers? with domain-free as attachment

  declare #main-output has domain-free


Purpose

If you use an input function in your program, you will have a scanning process and a parsing process running in separate processing domains. Stream variables belong to the domain in which they are opened and cannot be written from another domain. You can use domain-free to lift the restriction when opening a stream:

  open sample  with domain-free as buffer

If you need #main-output, which is opened by OmniMark itself, to be domain-free, you can use the declaration:

  declare #main-output has domain-free

If you do this, remember that the two processes are running in parallel, and make sure you don't make unwarranted assumptions about the order in which code in the two processes will be executed.

Streams opened with domain-free also have the "h" (suppresses line breaking) and "z" (suppresses translate rules ) element content format modifiers turned on by default.

       
 

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

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

Copyright © Stilo Corporation, 1988-2005.