swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax   Related Concepts  
operator  

is attached

 

 

Return type: Boolean
Returns:       

Returns true if the stream is attached to an object and false otherwise. Replacing is with isnt will reverse the results.



Syntax
  stream-name (is | isnt) attached 


Purpose

A stream test used to determine whether a stream is attached to an object.

Usage Notes

A stream can have three states: unattached (initial state), opened or closed.

Streams may be attached to any one of five objects:

  1. Buffers
  2. Files
  3. Referents
  4. External output functions
  5. #markup-parser

The association between an object and the attached stream can be broken using discard. If the stream was attached to a buffer, discard destroys the buffer.

    Related Syntax
   close
   discard
   open
   reopen
   set
   set stream
   set buffer
   is closed
   is open
   set file
   set referent
 
Related Concepts
   Streams: attachments
 
 

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

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

Copyright © Stilo Corporation, 1988-2005.