Perl6 / Rakudo : AutoFlush를 어떻게 비활성화 할 수 있습니까?
-
15-11-2019 - |
문제
나는 이것을 시도했지만 그것이 작동하지 않았습니다 :
$*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.
다른 팁
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:
$*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.
제휴하지 않습니다 StackOverflow