5 This example shows the usage of C<Stream::Sub>.
13 Creates a C<Stream::Sub> and dumps it.
20 load_bytecode 'Stream/Base.pbc'
21 load_bytecode 'Stream/Sub.pbc'
23 stream = new ['Stream'; 'Sub']
25 # set the stream's source sub
26 .const 'Sub' temp = "_counter"
37 This sub is used as the source for the counter stream.
39 It writes the numbers 0 .. 9 as strings to the stream.
50 # streams are using strings,
51 # so we have to convert the number into a string
65 Jens Rieks E<lt>parrot at jensbeimsurfen dot deE<gt> is the author
67 Please send patches and suggestions to the Perl 6 Internals mailing list.
71 Copyright (C) 2004-2009, Parrot Foundation.
79 # vim: expandtab shiftwidth=4 ft=pir: