swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
     
modifier   domain-free, declare #main-input has domain-free    

Syntax

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

  declare #main-input 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-input 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 applying translate rules to the element's data content) element content format modifiers turned on by default.

       
----

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

Generated: August 11, 2000 at 3:07:11 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.