Open atoomic opened 9 years ago
This is another example of the problem I think:
sub IO::Handle::turn {};
UNIVERSAL::can(*STDOUT, "turn") and print "ok 1 - globs with IOs can";
UNIVERSAL::can(\*STDOUT, "turn") and print "ok 2 - globrefs with IOs can\n";
UNIVERSAL::can("STDOUT", "turn") and print "ok 3 - IO barewords can\n";"
Under perl.
$>perl -e 'sub IO::Handle::turn {}; UNIVERSAL::can(*STDOUT, "turn") and print "ok 1 - globs with IOs can\n"; UNIVERSAL::can(\*STDOUT, "turn") and print "ok 2 - globrefs with IOs can\n"; UNIVERSAL::can("STDOUT", "turn") and print "ok 3 - IO barewords can\n";'
ok 1 - globs with IOs can
ok 2 - globrefs with IOs can
ok 3 - IO barewords can
No output under perlcc
$>perlcc -r -e 'sub IO::Handle::turn {}; UNIVERSAL::can(*STDOUT, "turn") and print "ok 1 - globs with IOs can\n"; UNIVERSAL::can(\*STDOUT, "turn") and print "ok 2 - globrefs with IOs can\n"; UNIVERSAL::can("STDOUT", "turn") and print "ok 3 - IO barewords can\n";'
testc.sh 300
This is similar to issue #290 PVFM are not saved
When dumping the SVs on compiled and uncompiled code. we can notice that the PVFM is null once compiled Add this dumy patch