TITLE ^

Stream::Writer - a PIR sub as target for a Stream

VERSION ^

version 0.1

SYNOPSIS ^

    # create the stream
    find_type $I0, "Stream::Writer"
    new stream, $I0

    # set the source sub
    .const .Sub temp = "_reader"
    stream."source"( temp )

    stream."write"( "hello, world" )

    ...

    .sub _reader :method
        .local string str
        str = self."read"()
    .end

DESCRIPTION ^

METHODS ^

source."write"()

...

source."rawRead"() (internal)

...

AUTHOR ^

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 ^

Copyright (C) 2004-2006, The Perl Foundation.


parrot