Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$*OUT isn't writeable #729

Closed
p6rt opened this issue Feb 28, 2009 · 5 comments
Closed

$*OUT isn't writeable #729

p6rt opened this issue Feb 28, 2009 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Feb 28, 2009

Migrated from rt.perl.org#63552 (status was 'resolved')

Searchable as RT63552$

@p6rt
Copy link
Author

p6rt commented Feb 28, 2009

From rooneg@electricjellyfish.net

Just tried to use the $*OUT filehandle, and it turns out it isn't writeable​:

$ ./perl6 -e '$*OUT.say("foo")'
Cannot write to a filehandle not opened for write
current instr.​: 'parrot;IO;print' pc 1035427 ((unknown file)​:-1)
called from Sub 'parrot;IO;print' pc 5795 (src/classes/List.pir​:185)
called from Sub 'parrot;IO;print' pc 5182 (src/classes/IO.pir​:109)
called from Sub 'parrot;IO;say' pc 5252 (src/classes/IO.pir​:155)
called from Sub '_block14' pc 87 (EVAL_14​:46)
called from Sub '!UNIT_START' pc 17743 (src/builtins/guts.pir​:325)
called from Sub 'parrot;PCT;HLLCompiler;eval' pc 950
(src/PCT/HLLCompiler.pir​:527)
called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1496
(src/PCT/HLLCompiler.pir​:787)
called from Sub 'parrot;Perl6;Compiler;main' pc 22036 (perl6.pir​:162)

Seems silly to have a filehandle that maps to stdout if you can't
write to it ;-)

This is with rakudo d3f40706177e53087dba1ccd798f5ad856baac7d.

@p6rt
Copy link
Author

p6rt commented Apr 8, 2009

From @jnthn

On Fri Feb 27 17​:47​:44 2009, rooneg wrote​:

Just tried to use the $*OUT filehandle, and it turns out it isn't
writeable​:

$ ./perl6 -e '$*OUT.say("foo")'
Cannot write to a filehandle not opened for write
...

Seems silly to have a filehandle that maps to stdout if you can't
write to it ;-)

Thanks for reporting. This one was fixed a little while back, along with
similar issues with $*ERR. Assigning to moritz to make sure we have test
coverage of this.

Jonathan

@p6rt
Copy link
Author

p6rt commented Apr 8, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 19, 2009

From @moritz

Now finally tested, in t/spec/S16-io/say.t.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Apr 19, 2009

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Apr 19, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant