公告
财富商城
积分规则
提问
发文
2019-06-28 00:41发布
叛逆
I tried this, but it didn't work:
$*OUT.autoflush( 0 );
$*OUT.autoflush = False should disable it, and it runs without error, but it seems that parrot's IO still flushes automatically. So there currently doesn't seem to be an easy way.
$*OUT.autoflush = False
Rakudo doesn't support autoflush. There's a note in 5to6-perlvar under the $OUTPUT_AUTOFLUSH entry.
$OUTPUT_AUTOFLUSH
Some examples from a long time ago mention an autoflush method, but that has disappeared:
autoflush
$*ERR.autoflush = True; $*ERR.say: "1. This is an error"; $*OUT.say: "2. This is standard out";
But that doesn't work:
No such method 'autoflush' for invocant of type 'IO::Handle'
I haven't seen any discussions about when this might show up as a feature, or a proclamation that it will never be a feature.
最多设置5个标签!
$*OUT.autoflush = False
should disable it, and it runs without error, but it seems that parrot's IO still flushes automatically. So there currently doesn't seem to be an easy way.Rakudo doesn't support autoflush. There's a note in 5to6-perlvar under the
$OUTPUT_AUTOFLUSH
entry.Some examples from a long time ago mention an
autoflush
method, but that has disappeared:But that doesn't work:
I haven't seen any discussions about when this might show up as a feature, or a proclamation that it will never be a feature.