|
|||||
|
|||||
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
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.