| parrotcode: a PIR sub as target for a Stream | |
| Contents | Libraries |

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

version 0.1

# create the stream
new stream, "Stream::Writer"
# 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



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-2008, The Perl Foundation.
|
|
|