| parrotcode: replayable Stream | |
| Contents | Libraries | 

Stream::Replay - replayable Stream

version 0.1

    load_bytecode "library/Stream/Replay.pir"
    $I0 = find_type "Stream::Replay"
    $P0 = new $I0
    assign $P0, other_stream
    # .. read from $P0 ..
    $P1 = clone $P0
    # .. read further ..
    $P0 = $P1
    # now, if you read from $P0, you get the same data as after the clone

By using clone, you can read data from a stream as often as you want.


Jens Rieks <parrot at jensbeimsurfen dot de> is the author and maintainer. Please send patches and suggestions to the Perl 6 Internals mailing list.

Copyright (c) 2004, the Perl Foundation.
|  |   |