class STR_STREAM < $OSTREAM, $STR
****
An output stream that writes out to a string (an FSTR, for efficiency). Very similar to a file.
_
Usage:
____write_to_stream(o:_$OUTSTREAM)_is
________o_+_"this_is_a_test";
____end;
____Which_can_be_invoked_using:
_____s:_STR_STREAM_:=_#;
_____write_to_stream(s);
_____write_to_stream(s);
_____s.str_then_would_have_two_copies_of_"this_is_a_test"_in_it.


Flattened version is here

Ancestors
$STR $OSTREAM



Public


Features
create: SAME
**** Create a new stream
plus(s: $STR)
plus(s: $STR): SAME
**** Append the string "s" to self
str: STR


Private

attr f: FSTR;
attr f: FSTR;

The Sather Home Page