1 # Copyright (C) 2004-2009, Parrot Foundation.
7 load_bytecode 'Stream/Writer.pbc'
8 load_bytecode 'Stream/Replay.pbc'
10 stream = new ['Stream'; 'Writer']
11 $P0 = get_global "_reader"
31 stream1 = new ['Stream'; 'Replay']
34 print "reader start\n"
37 str = stream1."read"()
39 str = stream1."read"()
43 stream2 = clone stream1
44 stream3 = clone stream1
47 str = stream2."read"()
49 str = stream2."read"()
54 str = stream1."read"()
56 str = stream1."read"()
59 str = stream1."read"()
61 str = stream1."read"()
66 str = stream3."read"()
68 str = stream3."read"()
70 str = stream3."read"()
72 str = stream3."read"()
75 str = stream3."read"()
87 # vim: expandtab shiftwidth=4 ft=pir: